Open the CMD.exe command-line window and change the code page with the CHCP command
UTF-8 code page for 65001,ansi/oem-Simplified Chinese GBK for 936,window default OEM-US 437
If the chcp command gets 437, then it must not display Chinese, at this time the Chinese is???. If it is garbled, then a certain character code is not UTF-8
Refer to http://zfj-rails.iteye.com/blog/778022
* 437-the original IBM PC code page
* 932-supports Japanese
* 936-GBK Supports Simplified Chinese
* 949-supports Korean
* 950-supports Traditional Chinese
* 1200-utf-16le Unicode Little-endian
* 1201-utf-16be Unicode Big-endian
* 65000-utf-7 Unicode
* 65001-utf-8 Unicode
* 10000-macintosh Roman encoding (followed by several other MAC character sets)
* 10007-macintosh Cyrillic encoding
* 10029-macintosh Central European encoding
* 20127-us-ascii the classic US 7 bit character set with no char larger than 127
* 28591-ISO-8859-1 (followed by iso-8859-2 to iso-8859-15)
Use Chcp 936 in the CMD.exe Command Line window.
The registry can also be used to enter Regedit in the start run to find the branch hkey_current_user/console/%systemroot%_system32_ Cmd.exe, double-click the right codepage option to change the value to hexadecimal 3a8 or decimal "936
Hexadecimal "000003a8" or decimal "936", which means "936 (ansi/oem-Simplified Chinese GBK)".
Hexadecimal "000001b5" or decimal "437", which means "437 (OEM-United States)".
How to display Chinese (UTF-8 characters) normally in Windows DOS window