public static String convert(String s){
try{
//把ISO编译过的字符转译为GB2312
return new String(s.getBytes("ISO-8859-1"),"GB2312");
}catch(Exception e){return null;}
}
各种框架中也多有字符编码规范,
ORACLE中UTF-8格式时,一个汉字占用三个字节哦
public static String convert(String s){
try{
//把ISO编译过的字符转译为GB2312
return new String(s.getBytes("ISO-8859-1"),"GB2312");
}catch(Exception e){return null;}
}
各种框架中也多有字符编码规范,
ORACLE中UTF-8格式时,一个汉字占用三个字节哦