Chinese PowerShell 5.1 script saved as UTF-8 without BOM is read as GBK and fails to parse

Domain: windows · Evidence E1 — Maintainer reviewed
powershellwindowsencodingbomchinese

Summary

A .ps1 containing Chinese comments/strings saved as UTF-8 without BOM produces mojibake and parser errors like unexpected token when executed by Windows PowerSh…

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons