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.
2 parents 44f1017 + 9179fcd commit 7b60e86Copy full SHA for 7b60e86
MetaFixers.psm1
@@ -17,7 +17,7 @@ function ConvertTo-UTF8()
17
process
18
{
19
$content = Get-Content -Raw -Encoding Unicode -Path $fileInfo.FullName
20
- Set-Content -Encoding UTF8 -Value $content -Path $fileInfo.FullName
+ [System.IO.File]::WriteAllText($fileInfo.FullName, $content, [System.Text.Encoding]::UTF8)
21
}
22
23
@@ -33,7 +33,7 @@ function ConvertTo-SpaceIndentation()
33
34
35
$content = (Get-Content -Raw -Path $fileInfo.FullName) -replace "`t",' '
36
- Set-Content -Value $content -Path $fileInfo.FullName
+ [System.IO.File]::WriteAllText($fileInfo.FullName, $content)
37
38
39
0 commit comments