"Go" Windows console cmd garbled solution

Source: Internet
Author: User

Windows Console cmd garbled solution my native system environment: OS name:microsoft Windows 10 Enterprise Edition OS version:10.0.14393 N/a Build 14393
Sometimes the output of Chinese garbled in cmd
The workaround is as follows: Enter CHCP 65001 in cmd
Press Enter and view no longer garbled
Note: CHCP is a computer instruction that can display or set the active code page number. Code page Description 65001 UTF-8 code page 950 Traditional Chinese 936 Simplified Chinese default GBK437 MS-dos US English
But setting the code through CHCP is a palliative. To permanently change the CMD encoding value requires modifying the registry method one: Enter the registry in the run through Regedit to find Hkey_current_user\console\%systemroot%_system32_ Cmd.exe Create a new DWORD (32-bit value), named CodePage, with the value set to 65001 method Two: I prefer this: Create a new cmd.reg content input as follows: Windows Registry Editor Version 5.00
[Hkey_current_user\console\%systemroot%_system32_cmd.exe] "CodePage" =dword:0000fde9 "FontFamily" =dword:00000036 " FontWeight "=dword:00000190" FaceName "=" Consolas "" Screenbuffersize "=dword:232900d2" WindowSize "=dword:002b00d2
Once saved, double-click Cmd.reg. Cmd.reg I also put a copy in csdn: http://download.csdn.net/detail/taoshujian/9770251 from:http://blog.csdn.net/taoshujian/ article/details/60325996

"Go" Windows console cmd garbled solution

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.