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

Closed
xtqqczze wants to merge 1 commit intoPowerShell:masterfrom
xtqqczze:add-bom
Closed

Add UTF-8 BOM for PowerShell files#101
xtqqczze wants to merge 1 commit intoPowerShell:masterfrom
xtqqczze:add-bom

Conversation

@xtqqczze
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@xtqqczze xtqqczze closed this by deleting the head repository Oct 4, 2025
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