Objective
Windows Chinese system, the default encoding is GB2312, and the Linux system default encoding is UTF-8. To display correctly, either modify the Linux system encoding to GB2312, or modify the filename encoding (the file content is not modified).
Obviously we choose the second, modify the file name encoding.
Installation
CentOS System command:
Yum-y Install CONVMV
Debian system command:
Apt-get Install CONVMV
command to use
Format: convmv-f source code-T new encoding [options] File name/directory name
Gb2312->utf-8
Convmv-f gb2312-t UTF-8--notest-r catalog convmv-f gb2312-t UTF-8--notest test. txt
Command explanation:
The-f parameter indicates the encoding before conversion;
-T is the converted encoding;
-R Recursive processing sub-folder;
--notest the actual operation, please note that the default is not to do real operation of the file, but only the experiment;
Note: If the files in the Linux system have been shown as garbled, the direct copy is garbled and pasted on the command line.
Reference article:
Http://blog.sina.com.cn/s/blog_4b3646350100kugp.html
http://blog.csdn.net/jnbbwyth/article/details/6991425
This article is from the "Enlightened Grocery store" blog, please be sure to keep this source http://wutou.blog.51cto.com/615096/1828376
Windows files are copied to Linux garbled, convert file name encoding