Home >Operation and Maintenance >Linux Operation and Maintenance >What to do if the Chinese file name in Linux is garbled
Solution to garbled Chinese file names in Linux: 1. Download and install "fonts-chinese-3.02-12.el5.noarch.rpm" and "fonts-ISO8859-2" language pack; 2. Modify/ etc/sysconfig/i18n; 3. Restart.
#The operating environment of this article: linux5.9.8 system, Dell G3.
What should I do if the Chinese file name in Linux is garbled?
Solution to the Chinese file name in Linux
Because the English version of the system installed does not support Chinese, Chinese characters appear The file name is garbled. Install Chinese support on centos during the following operations.
1) First download and install two language packs:
fonts-chinese-3.02-12.el5.noarch.rpm fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm #rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm #rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
or
#yum install fonts-chinese-3.02-12.el5.noarch.rpm #yum install fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
2) Modify /etc/sysconfig/i18n
and replace the original Comment it out and copy this thing in
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"
3) Finally restart and it will be ok.
Recommended study: "linux video tutorial"
The above is the detailed content of What to do if the Chinese file name in Linux is garbled. For more information, please follow other related articles on the PHP Chinese website!