1. First enter the locale to view the encoding settings
2. If Chinese support is installed, no Chinese language support is installed
Method One: Yum mode-full Chinese environment support.
#yum Groupinstall Chinese-support
# yum Groupinstall <language>-support
In the above command,,<language> is one of the following: Assamese, Bengali, Chinese, Gujarati, Hindi, Japanese, Kannada, Korean, Malayalam, Marath I, Oriya, Punjabi, Sinhala, Tamil, Thai, or Telegu.
Method Two: Yum mode, the command is executed separately:
1) yum Install Fonts-chinese fonts-iso8859-2-75dpi
2) cd/usr/share/fonts/
3) FC-CACHE-FV #
Method Three: RPM mode. Language pack found on the installation disk
# RPM-IVH fonts-chinese-3.02-9.6.el5.noarch.rpm
# RPM-IVH fonts-iso8859-2-75dpi-1.0-17.1.noarch.rpm
3.cat/etc/sysconfig/i18n Check to see if it's set up properly, paste your settings
Lang= "en_US. UTF-8 "
Supported= "ZH_CN. Gbk:zh_cn. GB18030:zh_CN:zh:en_US.iso885915:en_US:en "
Sysfont= "Latarcyrheb-sun16"
4.cat/etc/profile See if you have the appropriate encoding settings, paste your settings:
lang=zh_cn.gb18030
Langure=zh_cn.gb18030:zh_cn.gb2312:zh_cn
Export LANG langure
At this point, my garbled problem is solved anyway.
Solving the problem of Chinese garbled in Linux