-
-
Save raymadrona/4c77e2311c31fb79c59c3ca32306483a to your computer and use it in GitHub Desktop.
PowerShell script to save as UTF-8 without a BOM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gci . -recurse -filter *.ps* | % { | |
$MyFile = gc $_.Fullname -raw | |
$MyPath = $_.Fullname | |
[System.IO.File]::WriteAllLines($MyPath, $MyFile, [System.Text.UTF8Encoding]($False)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment