From 737ee37bccd3a62be844d998a18171ab244e0a37 Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Tue, 10 Dec 2024 13:43:53 -0800 Subject: [PATCH] Build-PSBuildModule Compile UTF-8 File We attempt to append UTF-8 encodings later, but the intial file isn't set to that. This should fix it. Signed-off-by: Gilbert Sanchez --- PowerShellBuild/Public/Build-PSBuildModule.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShellBuild/Public/Build-PSBuildModule.ps1 b/PowerShellBuild/Public/Build-PSBuildModule.ps1 index f2c82f6..e4d99e6 100644 --- a/PowerShellBuild/Public/Build-PSBuildModule.ps1 +++ b/PowerShellBuild/Public/Build-PSBuildModule.ps1 @@ -104,7 +104,7 @@ function Build-PSBuildModule { # Grab the contents of the copied over PSM1 # This will be appended to the end of the finished PSM1 $psm1Contents = Get-Content -Path $rootModule -Raw - '' | Out-File -FilePath $rootModule + '' | Out-File -FilePath $rootModule -Encoding utf8 if ($CompileHeader) { $CompileHeader | Add-Content -Path $rootModule -Encoding utf8