java配置文件中unicode和utf-8的转换

java内部使用的编码为unicode编码,在netbeans中使用时有时会将properties配置文件保存成unicode格式的,这样在其它编辑器中会显示成\0000字符.

java自带的工具native2ascii可以将unicode编码转换成utf-8编码,命令如下:

native2ascii -reverse -encoding UTF-8 unicode.properties utf-8.properties

你可能感兴趣的:(unicode)