Solution for garbled file name (invalid encoding) under Linux

Source: Internet
Author: User

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.

sudo apt-get install CONVMV

CONVMV How to use:

Convmv-f Source code-T new encoding [options] File name

Common parameters:

-R recursive processing of subfolders

–notest real operation, by default it does not do real operation of the file

–list display of all supported encodings

–unescap can be escaped, such as to turn%20 into a space

Example:

Convmv-f gbk-t UTF-8--notest *.mp3

This command transcode all MP3 file names

The encoding supported by CONVMV is as follows:

7bit-jis
Adobestandardencoding
Adobesymbol
Adobezdingbat
Ascii
Ascii-ctrl
Big5-eten
Big5-hkscs
cp1006
cp1026
cp1047
cp1250
cp1251
cp1252
cp1253
cp1254
cp1255
cp1256
cp1257
cp1258
Cp37
cp424
cp437
cp500
cp737
cp775
cp850
cp852
cp855
cp856
cp857
cp858
cp860
cp861
cp862
cp863
cp864
cp865
cp866
cp869
cp874
cp875
cp932
cp936
cp949
cp950
Dingbats
Euc-cn
Euc-jp
Euc-kr
Gb12345-raw
Gb2312-raw
gsm0338
Hp-roman8
Hz
Iso-2022-jp
Iso-2022-jp-1
Iso-2022-kr
Iso-8859-1
Iso-8859-10
Iso-8859-11
Iso-8859-13
Iso-8859-14
Iso-8859-15
Iso-8859-16
Iso-8859-2
Iso-8859-3
Iso-8859-4
Iso-8859-5
Iso-8859-6
Iso-8859-7
Iso-8859-8
Iso-8859-9
iso-ir-165
Jis0201-raw
Jis0208-raw
Jis0212-raw
Johab
Koi8-f
Koi8-r
Koi8-u
Ksc5601-raw
Macarabic
Maccentraleurroman
Macchinesesimp
Macchinesetrad
Maccroatian
Maccyrillic
Macdingbats
Macfarsi
Macgreek
Machebrew
Macicelandic
Macjapanese
Mackorean
Macroman
Macromanian
Macrumanian
Macsami
Macsymbol
Macthai
Macturkish
Macukrainian
Mime-b
Mime-header
Mime-header-iso_2022_jp
Mime-q
NeXTSTEP
Null
Posix-bc
ShiftJIS
Symbol
Ucs-2be
Ucs-2le
UTF-16
Utf-16be
Utf-16le
UTF-32
Utf-32be
Utf-32le
UTF-7
Utf-8-strict
Utf8
Viscii

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.