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 = ?

解决方案 »

  1.   

    http://www2.ccw.com.cn/01/0127/c/0127c05_5.asp
    http://www.mypcera.com/softxue/7/java/0069.htm
      

  2.   

    xuw.怎么我怎么都成功不了,晕了。你有成功的例子吗?可以具体一点显示给我看吗?我只要转化文件那个部分的。
      

  3.   

    the context in the first link is :
    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 :)
      

  4.   

    用记事本写一个文件o.txt 保存为编码ANSI文件
    o.txt
    name = 姓名d:\native2ascii o.txt
    name = \u59d3\u540d
      

  5.   

    找到了,txt保存为unicode,
    转换加参数  -encoding UTF-16就可以了。