我悄悄地打听一下:
String str=new String(str.getBytes("UTF-16"),"GB2312");
行吗?

解决方案 »

  1.   

    具体不明,在jsp下不知道,但我是在开发GUI程序是使用,写这段代码的话会出错.
      

  2.   

    String sTrExchange = "测试cccccccccceeeeeeeee";
    FileOutputStream fos = new FileOutputStream("D:/data.txt");
    fos.write(sTrExchange.getBytes("UTF-8"));
    fos.close();
      

  3.   

    问题已经解决了,采用开源组织的一个包就解决了。。
    commans-lang