adding:输入
greetings = 好farewell = 怀
inquiry = 莫
------------------------------------------------------
1.保存为unicode文件M_zh_CN.properties,
greetings = 好farewell = 怀
inquiry = 莫
用native2ascii M_zh_CN.properties M1_zh_CN.properties
新文件中为
\u00ff\u00feg r e e t i n g s = }Y
f a r e w e l l = `
i n q u i r y = \u00ab\u0192
------------------------------------------------------
2.如保存为ascii文件M_zh_CN.properties
greetings = ?farewell = ?
inquiry = ?用native2ascii M_zh_CN.properties M1_zh_CN.properties
新文件中为greetings = ?farewell = ?
inquiry = ?
greetings = 好farewell = 怀
inquiry = 莫
------------------------------------------------------
1.保存为unicode文件M_zh_CN.properties,
greetings = 好farewell = 怀
inquiry = 莫
用native2ascii M_zh_CN.properties M1_zh_CN.properties
新文件中为
\u00ff\u00feg r e e t i n g s = }Y
f a r e w e l l = `
i n q u i r y = \u00ab\u0192
------------------------------------------------------
2.如保存为ascii文件M_zh_CN.properties
greetings = ?farewell = ?
inquiry = ?用native2ascii M_zh_CN.properties M1_zh_CN.properties
新文件中为greetings = ?farewell = ?
inquiry = ?
http://www.mypcera.com/softxue/7/java/0069.htm
DISP_zh_TW.properties文件的具体内容如下: Key1=\u53ef\u4ee5 Key2=\u64a4\u9500 but how to convert from the file which includes the chinese. I did, but can not success, who can help me. I am crazying now :)
o.txt
name = 姓名d:\native2ascii o.txt
name = \u59d3\u540d
转换加参数 -encoding UTF-16就可以了。