你试着这样写试试:
String   trans(String   chi) 
{         String   result=null   ;byte   temp[]; 
          try 
          {   temp=chi.getBytes("ISO-8859-1"),"GB2312");
              result=new   String(temp);           } 
          catch   (UnsupportedEncodingException   e) 
          {   e.printStackTrace(); 
          } 
          return   result; 
} 这样应该能行!