Home > Operation and Maintenance > CentOS > What should I do if Chinese garbled characters appear in the graphical interface under centos?

What should I do if Chinese garbled characters appear in the graphical interface under centos?

王林
Release: 2020-03-30 15:35:17
Original
3344 people have browsed it

What should I do if Chinese garbled characters appear in the graphical interface under centos?

Environment: centos5.5

Solution:

1. Check the language used by the current system

[root@gd37 ~]# echo $LANG
zh_CN.utf-8
Copy after login

(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"
Copy after login

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
Copy after login

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template