Home >Operation and Maintenance >CentOS >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
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
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"
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!