Linux Common encoding

Source: Internet
Author: User

--The experience was a step in the pit, and every experience might have hidden a pit experience.

In Chinese, the main reason is because the code is different, the code is divided into two situations:

1. Inconsistent encoding of the document itself

2. Some of the software has its own function of the password

Attention:

The English alphabet also needs to be translated!!! The general situation does not affect, but in some cases it can cause very serious impact and cannot find the reason.

ex: windows under copy a copy of the Web file, winodws Chinese with GBK code, because there is no code to enter the file name, results in nginx There is no way to open some files, but occasionally it is the file name code problem, but I have been in the configuration for a few hours of folding totem.

One, the first situation can be used to use the tool to the password

    • Document Content Conversion

    • iconv-f From_encoding- t to_encoding filename

        • - o tofile

Ex: iconv - f gbk-t utf-8 filename

    • Enconv- L from_encoding - x (convert to) to_encoding filename

ex: enconv-f zh_cn-t utf-8 filename

    • File name Conversion

      • CONVMV - F from_encoding - T to_encoding filename

ex: CONVMV - f gbk-t utf-8 filename

two , software with self -transfer function

    • mount–o iocharset = encoding

      encoding < Span lang= "ZH-CN" > commonly used are: UTF8, GBK

    • zip -O CP936

If you do not specify a code, it is likely that the code will be displayed.

Linux Common 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.