File contents in garbled in Xshell

1, modify the system language support for Chinese

echo $ LANG view the default system language en_US.UFT_8

vim /etc/locale.conf modify the configuration file to the value of LANG zh_CN.UTF_8

source /etc/locale.conf the configuration file to take effect

 

 

2, the terminal modification:

In the following code, I do not know what the election should I choose UTF-8 and then the normal display Chinese.

 

 If there has been no effect if you can try to close the terminal has not died.

Fighting!!!

 

 

Guess you like

Origin www.cnblogs.com/DDiamondd/p/12009699.html