From 736488409b7c4844bb81230b61aee5540edef569 Mon Sep 17 00:00:00 2001 From: Dave Goldman <39909564+dgoldman-msft@users.noreply.github.com> Date: Fri, 4 Dec 2020 13:30:55 -0500 Subject: [PATCH] Update Fixing encoding output --- PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1 b/PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1 index 842903f..45707b3 100644 --- a/PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1 +++ b/PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1 @@ -62,7 +62,7 @@ Write-PSFMessage -Level Verbose -Message "Setting encoding for $resolvedPath" -Target $pathItem try { - if (Test-PSFShouldProcess -PSCmdlet $PSCmdlet -Target $resolvedPath -Action "Set encoding to $($Encoding.EncodingName)") + if (Test-PSFShouldProcess -PSCmdlet $PSCmdlet -Target $resolvedPath -Action "Set encoding to $($Encoding.Encoding.EncodingName)") { $text = [System.IO.File]::ReadAllText($resolvedPath) [System.IO.File]::WriteAllText($resolvedPath, $text, $Encoding)