1.vi/etc/sysconfig/i18n
Change the content to
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
So Chinese in SSH, Telnet terminal can be displayed normally.
2. Install Linux when the choice is Chinese characters, but the use of a garbled solution is to enter export lang=c at the command prompt
--------------------------------------------------------------------------------------------------------------- -
[Email protected] ~]# Local
Local locale Localedef
[Email protected] ~]# locale
Lang=zh_cn. GBK
Lc_ctype= "ZH_CN. GBK "
Lc_numeric= "ZH_CN. GBK "
Lc_time= "ZH_CN. GBK "
Lc_collate= "ZH_CN. GBK "
Lc_monetary= "ZH_CN. GBK "
Lc_messages= "ZH_CN. GBK "
Lc_paper= "ZH_CN. GBK "
Lc_name= "ZH_CN. GBK "
Lc_address= "ZH_CN. GBK "
Lc_telephone= "ZH_CN. GBK "
Lc_measurement= "ZH_CN. GBK "
Lc_identification= "ZH_CN. GBK "
Lc_all=zh_cn. GBK
Centos SSH Login garbled solution