Home > Operation and Maintenance > CentOS > Centos file name garbled solution

Centos file name garbled solution

Release: 2020-04-01 14:05:36
Original
2925 people have browsed it

Centos file name garbled solution

Solution to garbled centos file name:

First download and install the following two language packs:

fonts-chinese-3.02- 12.el5.noarch.rpm
fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

Use the following command to install:

#rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm 
#rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Copy after login

Or use the following command to install:

#yum install fonts-chinese-3.02-12.el5.noarch.rpm 
#yum install fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Copy after login

Then modify the encoding format in the centos system:

Open the /etc/sysconfig/i18n file, comment out the original, and change Add the following code.

LANG="zh_CN.GB2312"
SUPPORTED="zh_CN.GB2312:zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
Copy after login

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of Centos file name garbled solution. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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