UTF-8 coding for Linux/Windows systems

Source: Internet
Author: User
Linux/Windows system UTF-8 encoding problems from Windows to Linux copy files, sometimes appear Chinese file name garbled phenomenon, this problem occurs because, windows file name Chinese encoding is GBK by default, in Linux, the default file name encoding is UTF8, because the encoding is inconsistent... linux/Windows system UTF-8 encoding problems from Windows to Linux copy files, sometimes appear Chinese file name garbled phenomenon, this problem occurs because, windows file name Chinese encoding is GBK by default, in Linux, the default file name encoding is UTF8. due to inconsistent encoding, the file name is garbled. to solve this problem, you need to transcode the file name. Today, we will introduce a Linux tool: convmv. It can help you complete the conversion of file name encoding, the file name from GBK to UTF-8 encoding, but also from the UTF-8 to GBK. First, check whether convmv is installed on your system. if not, use yum-y install convmv. Next, let's take a look at the detailed usage of convmv: convmv-f source code-t new encoding [option] common parameters for file names:-r recursive processing subfolders-notest truly performs transcoding, note that by default, the file name is not actually transcoded, but a test. -List shows all supported codes-unescap can be used for escape. for example, % 20 is changed to a space. now, we have a utf8 encoded file name and convert it to GBK encoding. the command is as follows: convmv-f UTF-8-t GBK-notest utf8 encoding file name conversion in the future "utf8 encoding file name" will be converted to GBK encoding (only the conversion of file name encoding, the file content will not change.) the problem of garbled Chinese characters in the working copies of SVN in Linux can also be solved, a good tool.
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.