Linux Chinese garbled solution

  

When using the CentOS system, you may encounter the English CentOS system during installation. In this case, the CentOS system is installed by default (ie English). After the installation is completed, various Chinese garbled characters appear. So how do we solve this problem?

First, the CentOS system access g.cn, found Chinese garbled.

So in the previous way: yum -y install fonts-chinese CentOS system installation, still can not display Chinese fonts. I use gedit to edit the source code, and its Chinese comments are also garbled.

Later, I finally found the following method to solve, need two Chinese-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 a Chinese font and the other is a font display package.

After downloading, install it on the command line: #rpm -ivh XXXX (XXXX represents the full name of the two packages above, rpm will not know how to use it?) After the CentOS system is installed, restart it. can.

Second, the terminal, gedit shows garbled

#vi /etc/sysconfig/i18n will LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16" modify the original content as 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"

Install Chinese fonts with yum #yum install fonts-chinese.noarch system -> logout Logout When you log back in to the CentOS system, you will find that all interfaces have changed from English to Chinese. Enter the date command test at the terminal #date Monday, November 24, 2009 12:07:00 CST

Third, in ssh, telnet terminal Chinese display garbled solution (CentOS 5.3)

#vi /etc/sysconfig/i18n Modify the original content LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16" to 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"

Install Chinese fonts with yum #yum install fonts -chinese.noarch Disconnect ssh and reconnect. Enter the date command in the terminal to test #date Monday, November 24, 2009 12:09:00 CST

4. Use Chinese input method in CentOS system 5.3 Br>

My previous method was to install the Penguin version, see next page. Here, there is one more simple, just use yum to install SCIM. Command line input: #yum install scim #yum install scim-pinyin Restart X (Ctrl+Alt+Backpace) or logout (logout).

Ok, you can type in Chinese. The problem of Chinese garbled in the CentOS system is solved.

Copyright © Windows knowledge All Rights Reserved