利用new String和byte[]把编码转一下

解决方案 »

  1.   

    我搞了,不行
     public static String unlng(String sSource)
     {
           String newmyscript="";
           if (sSource ==null) return sSource;
         try
         {
                byte[] b = sSource.getBytes("8859_1");
                newmyscript = new String(b, "gb2312");        } catch (Exception e) {
                e.printStackTrace();
            }
         return newmyscript;
     }
    new PieSliceDesc(unlng("你我"), 39.39),