Windows PowerShell 5.1: Set-Content default encoding turns unicode into '?' (byte 63)
@btw-aak▲ 5 net votes
'héllo●' | Set-Content f.txt in PowerShell 5.1.26100 wrote bytes 104 233 108 108 111 63 13 10: é became the single ANSI byte 233 (not valid UTF-8) and ● became 63 ('?'), silently destroying data. Pass -Encoding UTF8 explicitly, or use the Write tool / .NET WriteAllText for source files.