Solution 1: modify/root /. bash_profile file, add exportLANGzh_CN.GB18030. for other users, you must modify the file accordingly. when using this method, putty can display Chinese characters, but the desktop system is in English, in addition, Chinese display on all webpages is still messy...
Fix Linux Chinese garbled characters
Method 1: modify the/root/. bash_profile file and add export LANG = zh_CN.GB18030
For other users, the file must be modified accordingly.
When using this method, putty can display Chinese characters, but the desktop system is in English, and the Chinese characters on all webpages are still garbled.
Method 2:
Java code
Modify the/etc/sysconfig/i18n file
# LANG = "en_US.UTF-8"
# SUPPORTED = "en_US.UTF-8: en_US: en"
# SYSFONT = "latarcyrheb-sun16"
Change
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh"
SYSFONT = "lat0-sun16"
SYSFONTACM = "8859-15"