编码的字符串转换
? String str="12344";??String gstr=new?? String(str.getBytes( "原有编码 "), "目标编码 ");
例如:
? String str="12344";??String gstr=new?? String(str.getBytes( "GB2312"), "ISO-8859-1"); ??System.out.println(gstr);