How can we solve various Chinese garbled characters when using centos.
1. The centos system accesses xxx.cn and finds Chinese garbled characters.
So we used the previous method: Yum-y install fonts-Chinese.
After the centos system is installed, the Chinese font still cannot be displayed. I used gedit to edit the source code, and its Chinese comments were garbled.
Later, we finally found the following solution and needed two packages supported by Chinese characters:
Fonts-chinese-3.02-12.el5.noarch.rpm
Fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
One is a Chinese font and the other is a font display package.
Install the SDK on the command line:
# Rpm-IVH xxxx
After the centos system is installed, restart it.
2. garbled display on terminals and gedit
# Vi/etc/sysconfig/i18n
Set lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16"
Modify the original content
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"
Use Yum to install Chinese Fonts
# Yum install fonts-chinese.noarch
System-> logout
When you log on to the centos system again, you will find that all interfaces have changed from English to Chinese.
Iii. Solutions to garbled Chinese characters on the Telnet terminal over SSH (centos 5.3)
# Vi/etc/sysconfig/i18n
Set the original content lang = "en_US.UTF-8"
Sysfont = "latarcyrheb-sun16"
Change
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"
Use Yum to install Chinese Fonts
# Yum install fonts-chinese.noarch
Disconnect SSH and reconnect
4. Use Chinese Input Methods in centos 5.3
Command Line input:
# Yum install scim
# Yum install scim-pinyin
Restart X (Press CTRL + ALT + backpace) or log out (logout ).
Now, you can enter Chinese characters. The problem of Chinese garbled characters in the centos system is solved in this way.
In centos
Centos5.5 Garbled text + no Internet access
If the I settings of the Linux System in the VM are correct, you may not be able to access the Internet if the company network is bound to a Mac or a different IP segment, you can try nat on a virtual machine.
As for Chinese garbled characters, it may be the relationship between character packs. Try again
VI/etc/profile
Export lc_all = "zh_cn.gb18030: zh_cn.gb2312: zh_cn.gbk: zh_cn: en_US.UTF-8: en_us: EN: Zh: zh_tw: zh_cn.big5"
Save and exit, reboot system ..
2. garbled characters in X-window (graphic interface)
VI/etc/sysconfig/i18n
Lang = "zh_cn.gb18030: zh_cn.gb2312: zh_cn.gbk: zh_cn: en_US.UTF-8: en_us: EN: Zh: zh_tw: zh_cn.big5"
Language = "zh_cn.gb18030: zh_cn.gb2312: zh_cn.gbk: zh_cn: en_US.UTF-8: en_us: EN: Zh: zh_tw: zh_cn.big5"
Save reboot...