Home>Article>Operation and Maintenance> Chinese file name in centos system is garbled
Solution:
Install the transcoding tool and transcode the file name.
Installation method 1:
wget http://pkgs.repoforge.org/convmv/convmv-1.15-1.el6.rf.noarch.rpm rpm -ivh convmv-1.15-1.el6.rf.noarch.rpm
(Recommended tutorial:centos usage tutorial)
Installation method 2:
yum install convmv
Usage method :
/usr/bin/convmv -f gbk -t utf-8 -r --notest /home/wwwroot(要转码的文件夹)
Note: Do not use this command in NTFS and FAT file systems, otherwise unexpected results may occur. If you want to correctly display the file names of NTFS and FAT in Linux, you can use mount parameters to solve.
Recommended related video tutorials:linux video tutorial
The above is the detailed content of Chinese file name in centos system is garbled. For more information, please follow other related articles on the PHP Chinese website!