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

Chinese file name in centos system is garbled

王林
Release: 2020-03-18 17:27:29
Original
2949 people have browsed it

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
Copy after login

(Recommended tutorial: centos usage tutorial)

Installation method 2:

yum install convmv
Copy after login

Usage method :

/usr/bin/convmv -f gbk -t utf-8 -r --notest /home/wwwroot(要转码的文件夹)
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template