This is no longer necessary since Eclipse 4.2 (Juno, 2012). Eclipse will take care of this transparently when you use the built-in property file editor. It will display and accept values ββin UTF-8, but it will silently convert under the cover to the format \uXXXX . It should be noted that this has some strange side effects in combination with the Git plugin (for example, old lines deleted during merge), it works best if you close all property files before pulling / clicking.
If you are not already on Eclipse 4.x, consider using the native2ascii tool found in the /bin folder of the JDK installation directory to convert UTF-8 property files to ASCII properties files, as described in javadoc of the java.util.Properties class .
You can save the "original" property files (for example, give them the extension .utf8 ) and use the batch / shell file to convert them as follows:
cd c: \ path \ to \ properties \ files
c: \ path \ to \ jdk \ bin \ native2ascii.exe -encoding UTF-8 text_cs.properties.utf8 text_cs.properties
c: \ path \ to \ jdk \ bin \ native2ascii.exe -encoding UTF-8 text_ja.properties.utf8 text_ja.properties
c: \ path \ to \ jdk \ bin \ native2ascii.exe -encoding UTF-8 text_zh.properties.utf8 text_zh.properties
# You can add more properties files here.
This way you can simply edit the .utf8 files and run the batch / shell script once to convert your own characters to \uXXXX . Also see this blog post .
See also:
source share