We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7b7e1 commit 7364884Copy full SHA for 7364884
PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1
@@ -62,7 +62,7 @@
62
Write-PSFMessage -Level Verbose -Message "Setting encoding for $resolvedPath" -Target $pathItem
63
try
64
{
65
- 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)")
66
67
$text = [System.IO.File]::ReadAllText($resolvedPath)
68
[System.IO.File]::WriteAllText($resolvedPath, $text, $Encoding)
0 commit comments