String str = new String(anotherStr.getBytes("iso-8859-1"),"GB2312");

解决方案 »

  1.   

    strvalue = new String(strvalue.getBytes("ISO8859_1"), "GBK");
      

  2.   

    问题发生在哪里,如果是处理IO流用Reader和Writer--------------------------
                    他们为什么扣我的信誉分
                    扣我信誉分怎么没有记录
    --------------------------
      

  3.   

    public class EnlishToChinese {
      public EnlishToChinese() {
      }
      public  String toChinese(String str){
        String s="";
       try {
          s = new String(str.getBytes("ISO-8859-1"), "GB2312");
       }
       catch (Exception ex) {
       }
        return s;
      }}