How to display Chinese (UTF-8 characters) normally in Windows DOS window

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.