42

linux中文文件名乱码解决

 5 years ago
source link: https://www.linuxprobe.com/linux-serve-chinese.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

由于安装英文版的系统不支持中文,出现中文文件名乱码。下面操作时在centos上安装中文支持。

1)先下载并安装两个语言包:
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

或者

#yum install fonts-chinese-3.02-12.el5.noarch.rpm

#yum install fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
2)修改/etc/sysconfig/i18n

j将原来的注释掉,这段东西拷进去

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)最后重启就ok了。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK