Character Set Conversion Tool in Linux

Source: Internet
Author: User
Linux Character Set Conversion Tool-general Linux technology-Linux programming and kernel information. The following is a detailed description. Use the iconv command for encoding and conversion

The iconv command is used to convert the encoding of a specified file. By default, it is output to a standard output device, or an output file.

Usage: iconv [option...] [file...]

The following options are available:

Input/output format specifications:
-F, -- from-code = Name Original Text Encoding
-T, -- to-code = Name output Encoding

Information:
-L, -- list lists all known character sets

Output Control:
-C: Ignore invalid characters from the output
-O, -- output = FILE: output FILE
-S, -- silent close warning
-- Verbose prints the progress information

-?, -- Help: Provides the system's help list
-- Usage provides brief usage information
-V, -- version print the program version number

Example:
Iconv-f UTF-8-t gb2312 aaa.txt> bbb.txt
This command reads the aaa.txt file and converts it from the 8th to the gb2312th file, and the output is directed to the bbb.txt file.
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.