My command prompt's default code page is 936.
I need to change it to UTF-8.
chcp 65001
The above doesn't work. What's the correct one?
In order for chcp 65001 to work, you must be using a TrueType font in the command prompt. One such font is Lucida Console.
To use Lucida Console:
PropertiesFontLucida ConsoleOKMany people complain in different questions about the 65001 support in windows console. My particular solution was to use ISO-8859-1 code page (28591) instead of UTF-8. You might take a look at the Code Page Identifiers at MSDN to identify one that fits your character needs.