The file is created under Windows, the file name encoding for Windows is GBK by default, and the default file name in Linux is encoded as UTF8, because the encoding
Inconsistent so caused the file name garbled problem, to solve this problem requires the file name transcoding. FileName transcoding tool CONVMV not installed.
Install with the following command:
=============================================================================
[Email protected] Desktop]# yum-y install CONVMV
Loaded plugins: Fastestmirror, LangPacks
Loading mirror speeds from cached hostfile
Resolving dependencies
--Checking transactions
---> Package convmv.noarch.0.1.15-2.el7 will be installed
--Resolve dependency completion
Dependency resolution
=======================================================================================
Package schema version Source size
Installing:
CONVMV Noarch 1.15-2.el7 CentOS7 k
Transaction summary
Installing the 1 package
Total Downloads: K
Installation Size: K
Downloading packages:
Running transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: Convmv-1.15-2.el7.noarch 1/1
Verified in: Convmv-1.15-2.el7.noarch 1/1
has been installed:
Convmv.noarch 0:1.15-2.EL7
Complete!
Main method: Convmv-f gbk-t UTF-8--notest-r [destination folder parent directory]
Quick fix for file name garbled (invalid encoding) under CentOS 7.4 Linux