用native2ascII -encode GBK inputfile.txt inputfile_cn.txt
然后操作inputfile_cn.txt就ok了

解决方案 »

  1.   

    super_zzw(之支吾)
    你说啥?没看懂,能不能用几行代码说明,谢谢。littlecpu(嘿,哥们,你欠我分,快给咯)
    嗯,对,又是我,你回答我的那个问题,我还是有疑问,谢谢
    http://expert.csdn.net/Expert/TopicView1.asp?id=1881911
      

  2.   

    native2ascII这是个命令,你可以在jdk的bin目录下找的到
    你在命令窗口中敲入下面的命令运行,对你的inputfile.txt文件进行转换
    native2ascII -encode GBK inputfile.txt inputfile_cn.txt
    然后你的程序中操作的文件是inputfile_cn.txt文件