I suppose you use code-page 949? I did "chcp 949" in both cmd and Windows PowerShell, run the above code, pasted text "안녕" from zig issue page as input and the output was:
EC9588 안 EB8595 녕 Just being curious... * What is your "Current language for non-Unicode programs" in Windows? (Settings -> Time & Language -> Date, time, & regional formatting -> Additional date, time , & regional settings -> Change date, time, or number formats -> Administrative) * I hope you do not have "Beta: Use Unicode UTF-8 for worldwide language support" enabled (also in Administrative tab). * After running nim to compile your code, did you close and reopen cmd? Because running nim sets code-page to 65001. I'm really trying to find a solution that works for everyone. Every computer I've tried with 65001 cannot get input in Greek (every character is replaced by 0x00). And sources around the internet state that Windows console has many issues with UTF-8 support, essentially supporting only 7 bits in various places.
