Modules icon indicating copy to clipboard operation
Modules copied to clipboard

Add UTF-8 BOM for PowerShell files

Open xtqqczze opened this issue 4 years ago • 2 comments

As discussed in #100, Windows PowerShell defaults to the Windows-1252 file encoding, so the UTF-8 BOM may be needed to avoid encoding issues in PowerShell files.

https://docs.microsoft.com/powershell/scripting/dev-cross-plat/vscode/understanding-file-encoding

xtqqczze avatar Aug 31 '20 23:08 xtqqczze

Windows PowerShell defaults to the Windows-1252 file encoding

On English Windows version. What about localized Windows version?

iSazonov avatar Sep 01 '20 04:09 iSazonov

Windows PowerShell defaults to the Windows-1252 file encoding

On English Windows version. What about localized Windows version?

Yes, it may differ. That's one more reason to add a UTF-8 BOM to files interpreted by Windows PowerShell. 😄

xtqqczze avatar Sep 01 '20 10:09 xtqqczze