CONVMV Encoding Conversion Tool detailed

Source: Internet
Author: User

CONVMV Encoding Conversion Tool detailed
The filename transcoding tool--CONVMV,CONVMV can help us easily encode and convert all the files in a file, a directory, such as GBK to UTF8.
Installing the Yum install CONVMV
Grammar:
CONVMV [Options] FILE (S) ... DIRECTORY (S)
Main options:
1,-F ENCODING
Specifies the encoding of the current file name, such as-f GBK
2,-t ENCODING
Specifies the encoding that will be converted, such as-f utf-8
3,-R
Recursively convert all filenames under directory
4 、--List
List all supported encodings
5 、--Notest
The default is to print only the converted effect, plus this option to actually perform the conversion operation.
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
-I interactive mode (asking for each conversion to prevent mis-operation)
How to use CONVMV:
Convmv-f Source code-T new encoding [options] File name
Example: recursive conversion of the current file name encoding in the CentOS directory GBK to Utf-8:
1. Convmv-f gbk-t UTF-8--notest-r R8 #r8表示目录
2. Convmv-f gbk-t UTF-8--notest-r 303i.com/*
(303i.com/* is the current directory for the file to be encoded)
After conversion, the "GBK encoded file name" is converted to UTF-8 encoding (only the filename-encoded conversion, and the contents of the file are not changed).
Note: Do not use this command in NTFS and FAT file systems, otherwise it may be unexpected, if you want to correctly display the names of NTFS and fat in Linux, you can resolve them by using the mount parameter, and refer to the man manual for specific methods.

CONVMV Encoding Conversion Tool detailed

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.