你试着这样写试试:
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;
} 这样应该能行!
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;
} 这样应该能行!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货