My variables are not properly displaying if they contain non-ASCII characters:
$Test = '♭'
$Test
Expected output: ♭
Actual output: â™
In an old batch script I could fix it by running this command at the top of my script: chcp 65001
However, it doesn't work in PowerShell and I can't find anything like it.
How can I properly set non-ASCII values for my variables?
My .ps1 file is UTF-8 encoded, so the problem isn't there.