CentOS Terminal command line display Chinese garbled solution

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.