Environment: centos5.5
Solution:
1. Check the language used by the current system
[root@gd37 ~]# echo $LANG zh_CN.utf-8
(recommended tutorial :centos tutorial)
2. Check the regional language settings of the system
[root@gd37 ~]# cat /etc/sysconfig/i18n LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16"
Note:
/etc/sysconfig/i18n The system is stored here Regional language settings, i18n is the abbreviation of "internationalization", its source is the first and last characters i and n of the English word internationalization, and 18 is the number of characters in the middle.
The first line indicates the locale variable settings of your current system;
The second line defines the console terminal font. The font displayed when you log in with text is latarcyrheb-sun16.
3. Install fonts-chinese-3.02-12.el5.rpm Chinese font package
[root@gd37 ~]#yum install fonts-chinese
Recommended related video tutorials: linux video tutorial
The above is the detailed content of What should I do if Chinese garbled characters appear in the graphical interface under centos?. For more information, please follow other related articles on the PHP Chinese website!