Unicode encoding and Chinese conversion, unicode encoding conversion

Source: Internet
Author: User

Unicode encoding and Chinese conversion, unicode encoding conversion
For example, if your original file is 1. properties (this file is encoded in Chinese), you want to convert it to unicode
Enter the directory where your file is located in cmd and type:
Native2ascii-encoding gb2312 1. properties 2. properties,
After the command is executed, you will see a 2. properties file in the current directory. The content is the unicode encoded content of 1. properties.
If you want to convert it back, enter the directory where the file is located in cmd and type:
Native2ascii-reverse-encoding 2. properties 3. properties,
After the command is executed, a 3. properties file is generated in the current directory, whose content is the Chinese encoding of 2. properties,
At this time, if your 1. properties file is still present, you can compare the content of 1. properties and 3. properties,
The content of the two files should be the same. The premise is that you did not change the content of the 2. properties file,

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.