Iconv command in CentOS

Source: Internet
Author: User
Iconv-fencoding [-tencoding] [inputfile]... [function] converts the content of a given file from one encoding to another. [Description]-fencoding: converts characters from encoding. -Tenco

Iconv-f encoding [-t encoding] [inputfile]...

 

[Function]

Converts the content of a given file from one encoding to another.

 

[Description]

-F encoding: converts characters from encoding.

-T encoding: converts characters to encoding.

-L: list known encoding character sets

-O file: specifies the output file

-C: ignore invalid output characters

-S: indicates that warning information is forbidden, but not an error message.

-- Verbose: displays the progress.

The valid characters that can be specified by-f and-t are listed in the-l option command.

 

[Example]

* List currently supported character encodings:

[Quietheart @ lv-k test] $ iconv-l

 

* Transcode file1 and output the file to fil2:

[Quietheart @ lv-k test] $ iconv file1-f EUC-JP-MS-t UTF-8-o file2

Here, the output will be standard output if there is no-o.

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.