mysql lation 转码
publicstaticStringtoGBK(Stringstrvalue){
try{
if(strvalue==null){
return"";
}else{
strvalue=newString(strvalue.getBytes("ISO-8859-1"),"GBK").trim();
returnstrvalue;
}
}catch(Exceptione){
return"";
}
}
publicstaticStringtolatin(Stringstrvalue){
try{
if(strvalue==null){
return"";
}else{
strvalue=newString(strvalue.getBytes("GBK"),"ISO-8859-1").trim();
returnstrvalue;
}
}catch(Exceptione){
return"";
}
}
相关推荐
86530296 2020-11-10
hilary0 2020-02-21
PANH 2020-01-23
83096129 2020-01-08
fangjack 2020-01-01
Justypc 2013-03-29
shyoushine 2019-11-10
cherayliu 2019-11-04
Wmeng0 2018-08-17
PANH 2019-10-28
CWeeYii 2008-09-17
王之白石 2014-10-26
欧阳凯少 2015-08-26
zhongweinan 2019-09-08
Fairfeng 2019-09-08
lbn0 2019-09-08
gaedmihx 2019-04-17
ningningmingming 2016-08-16