试试
String str = "请输入您的名字";
str=new String (str.getBytes("ISO-8859-1"),"gb2312");
再显示看看是否可以了

解决方案 »

  1.   

    String sd = "阿深度发射飞机刀法";
    sd = new String(sd.getBytes("ISO-8859-1"),"GBK");
      

  2.   

    用这个函数试试:
       String convert(String str){
         try{
            byte[] byte_str=str.getBytes("ISo-8859-1");
            String return_str=new String(byte_str);
            return retrun_str;
        }catch(Exception e){
          return null;
       }
      }