Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Add UTF-8 BOM for PowerShell files #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xtqqczze
Copy link
Contributor

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

@iSazonov
Copy link
Collaborator

iSazonov commented Sep 1, 2020

Windows PowerShell defaults to the Windows-1252 file encoding

On English Windows version. What about localized Windows version?

@xtqqczze
Copy link
Contributor Author

xtqqczze commented Sep 1, 2020

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 xtqqczze closed this Jul 3, 2021
@xtqqczze xtqqczze reopened this Jul 3, 2021
@iSazonov iSazonov assigned iSazonov and unassigned iSazonov Jul 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants