Home  >  Article  >  Operation and Maintenance  >  Chinese file name in centos system is garbled

Chinese file name in centos system is garbled

王林
王林Original
2020-03-18 17:27:292813browse

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!

Statement:
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