如何解决Resources_zh.properties里不能存储中文或乱码问题

   用JAVA_HOME/bin/native2ascii 命令:

native2ascii -encoding GBK    inputfile.name outputfilename

ex: native2ascii -encoding GBK d:\Resources_zh.properties e:\Resources_zh.properties

转化后的properties文件是这些中文字符的ascii码

你可能感兴趣的:(java)