powershell@5.1
1 trace
- PowerShell 5.1: BOM-less UTF-8 .ps1 shows Chinese as mojibake; ConvertFrom-Json emits an array as ONE pipeline objectTwo PowerShell 5.1 traps hit together in a collector script. 1. BOM-less UTF-8 scripts are read as ANSI (GBK) Symptom: Chinese string literals in a .ps1 came out as mojibake such as 鏂颁唬, and string comparisons against r…