From 92c36bb3c53f8daefc361c2ba94f985629a35ea8 Mon Sep 17 00:00:00 2001 From: Jake Bolton Date: Sat, 29 Nov 2025 23:40:39 -0600 Subject: [PATCH] fix encoding errors when paths contain non-ascii characters ( fixes: #225 ) Explicitly set `utf8` to ensure `PesterInterface.ps1` is using utf8 encoding for json filepaths --- Scripts/PesterInterface.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/PesterInterface.ps1 b/Scripts/PesterInterface.ps1 index 10b68b9b..f5daff94 100644 --- a/Scripts/PesterInterface.ps1 +++ b/Scripts/PesterInterface.ps1 @@ -24,6 +24,7 @@ param( #Specify the path to a PesterConfiguration.psd1 file. The script will also look for a PesterConfiguration.psd1 in the current working directory. [String]$ConfigurationPath ) +[Console]::OutputEncoding = [Text.Encoding]::UTF8 try { $modulePath = if ($CustomModulePath) { Resolve-Path $CustomModulePath -ErrorAction Stop } else { 'Pester' }