你使用Properties.load就可以看到

解决方案 »

  1.   

    给你一段程序去转换,要不要:import java.io.*;/**
     * Created by IntelliJ IDEA.
     * User: Administrator
     * Date: 2004-7-14
     * Time: 9:36:53
     * To change this template use File | Settings | File Templates.
     */
    public class Ascii2Native {
        static int getHex(byte b){
            int i=-1;
            if(b>=97 && b<=102){
                i=b-87;
            }else if(b>=65 && b<=70){
                i=b-55;
            }else if(b>=48 && b<=57){
                i=b-48;
            }
            return i;
        }
        static  char byte2ToChar(byte b1, byte b2, byte b3, byte b4) {
            return (char) (((((getHex(b1)<<4)+getHex(b2))<<4)+getHex(b3)<<4)+getHex(b4));
        }    public static void main(String[] args) throws FileNotFoundException, IOException {
            System.out.println("args.length = " + args.length);
            if (args.length != 4 || !"-encoding".equals(args[0])) {
                System.out.println("using \nAscii2Native -encoding XXX inputfile outputfile");
                return;
            }
            File inFile = new File(args[2]);
            FileInputStream in = new FileInputStream(args[2]);
            FileOutputStream out = new FileOutputStream(args[3]);
            byte b[] = new byte[(int) inFile.length()];
            StringBuffer buf = new StringBuffer();
            in.read(b);
            for (int i = 0; i < b.length; i++) {
                if(b[i]=='\\' && b[i+1]=='u'){
                    buf.append(byte2ToChar(b[i+2],b[i+3],b[i+4],b[i+5]));
                    i+=5;
                }
                else
                    buf.append((char)b[i]);
            }
            out.write(buf.toString().getBytes());        out.close();
            in.close();
        }}
      

  2.   

    native2ascii -reverse -encoding Cp1381 xxxx.properties oneone.txt
      

  3.   

    native2ascii -reverse -encoding Cp1381 xxxx.properties oneone.txt
     什么意思呀?
      

  4.   

    native2ascii属于j2sdk(jvm)命令.自己去查吧。
    目前不知道哪一种编辑器支持这咱转换格式。
    用native2ascii命令可以恢复汉字。
      

  5.   

    native2ascii -reverse -encoding Cp1381 xxxx.properties oneone.txt可以,早知道我就不写那段代码了