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,