I have a folder on Windows that contains files whose name contain unicode extended characters (simplified chinese). I'd like to grab a list of these files. Of course, cmd won't display them correctly, but I was hoping Powershell could.
Unfortunately, the result of the dir command isn't any better. When I search existing questions, everything is about the file encoding, not displaying the file name.
I'm not looking to make any system-wide change like changing the system locale or the default code-page, but I would expect PowerShell to be able to handle unicode output on screen.
Get-ChildItem | Out-File -FilePath output.txt -Encoding utf8. If you want to see those characters on the console select a font that works/has codepoints for it as an example MS Gothic. – Seth Apr 19 '18 at 13:05I'm not looking to make any system-wide changeyet this question is closed "because it already has answers on another thread which makes system-wide change". I'm seeing a lot of valid question gets closed while I think it shouldn't. – Thariq Nugrohotomo Mar 14 '21 at 01:42