Windows - CMD window UTF8 encoding to solve the garbage problem is!

Problem Description
    When you open a file UTF-8 with MS-DOC, garbled
root of the problem
    CMD default Windows system default encoding (GBK),
    with GBK format to decode the file UTF-8, of course, will be garbled.
Solutions
    replace CMD activities code page number, that change the character set.
troubleshooting steps
    1, open CMD.exe
    2, enter the command: chcp 65001
    3, open the CMD window, change its configuration: properties -> fonts -> select Console Lucida
    4, click OK.
Test
    1, File -> 1.txt format UTF-8
    2, displays -> type 1.txt
supplement
    chcp 65001 is replaced by UTF-8 code page  
    chcp 936 can exchange the default GBK  
    chcp 437 is US English   
Reference
   http: / /hi.baidu.com/zhongnan/item/b4abb24940bd0895823ae101
    http://xuliduo.iteye.com/blog/639923

Guess you like

Origin www.cnblogs.com/sunylat/p/11308037.html