cmd command-line display Chinese garbled

cmd command-line display Chinese garbled mostly due to the character encoding mismatch causes.

1, see cmd encoding

A method, open cmd, enter the transport command chcp (display the default encoding: the active code page: 936 refers GBK)

 

Method Two, open cmd, right-click the title bar select [property] in property options can be seen in the current encoding

 

 2, change the encoding cmd ---- ------- solve the garbage problem will be changed to utf-8 encoding

Open cmd window, enter the command Enter chcp 65001 modified successfully, according to top View operation, if you want to have saved this encoding: Open the "Properties" --- "Options" and check the "discard the old copy" - - OK --- complete

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/an-ning0920/p/11890564.html
Recommended