Linux SSH display problem

Recommended for you: Get network issues from WhatsUp Gold. Not end users.
Linux character encoding is en_US.UTF-8 by default, if the code can be set to GBK or other code.
1 to modify the profile file, execute the following command to view the profile file information:

vi /etc/profile


2 at the end of the file and add the following two commands:

export LC_ALL="zh_CN.GBK"
export LANG="zh_CN.GBK"


The configuration of main:

en_US.UTF-8 UTF-8

en_US ISO-8859-1
zh_CN GB2312
zh_CN.GB18030 GB18030
zh_CN.UTF-8 UTF-8
The default for en_US.UTF-8 UTF-8

3 can also command in the /root/.bash_profile file and add the following line two:

export LC_ALL="zh_CN.GBK"
export LANG="zh_CN.GBK"

Restart the server for the changes to take effect.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Christine at January 01, 2014 - 6:16 PM