Linux Command--iconv conversion encoding

Source: Internet
Author: User

iconvis a command-line tool that comes with the Linux system to convert file encodings.

Command parameters

To iconv --help View command help information by using the command:

用法: iconv [OPTION...] [-f ENCODING] [-t ENCODING] [INPUTFILE...]或者: iconv -l将文本从一种编码转换成另一种编码。控制输入输出格式的选项:  -f ENCODING, --from-code=ENCODING                              输入编码  -t ENCODING, --to-code=ENCODING                              输出编码控制字符转换的选项:  -c                          忽略不可转换的字符  --unicode-subst=FORMATSTRING                              替代不可转换的 Unicode 字符  --byte-subst=FORMATSTRING   替代不可转换的字节  --widechar-subst=FORMATSTRING                              替代不可转换的宽字符控制错误输出的选项:  -s, --silent                不显示有关转换出错的信息输出信息:  -l, --list                  列出支持的编码  --help                      显示此帮助并退出  --version                   显示版本信息并退出
Working with instances
    • To view a list of supported encodings:
iconv -l
    • Convert File content encoding
iconv -f ENCODING -t ENCODING INPUTFILE

Original address: https://shockerli.net/post/linux-tool-iconv/

Linux Command--iconv conversion encoding

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.