The installation of CentOS when the choice of Chinese, the results in the terminal can not display Chinese, are garbled, the solution:
Modify the/etc/sysconfig/i18n, content is
The code is as follows:
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
Exit Login Again
Test method: Enter the date command test at the terminal, if shown in the following form, the description successfully resolved the
The code is as follows: #date
Monday, November 24, 2009 12:09:00 CST
If you do not have a Chinese font in your system, install the Chinese font:
The code is as follows:
#yum Install Fonts-chinese.noarch
If the font file cannot be found, it can also be installed with the RPM package
Requires two Chinese-language supported packages:
fonts-chinese-3.02-12.el5.noarch.rpm
ftp://ftp.muug.mb.ca/mirror/centos/5.4/os/x86_64/CentOS/fonts-chinese-3.02-12.el5.noarch.rpm
fonts-iso8859-2-75dpi-1.0-17.1.noarch.rpm
ftp://ftp.muug.mb.ca/mirror/centos/5.4/os/x86_64/CentOS/fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
One is the Chinese font, one is the font display package.
After downloading, install at the command line:
The code is as follows: #rpm-IVH xxxx (xxxx represents the full name of the above two packages, RPM does not know how to use it? )
After the installation of the CentOS system is complete, reboot.
CentOS Terminal command line display Chinese garbled solution