public String TranStrType(String str) throws Exception {
try {
if (str == null)
return null;
else {
str = new String(str.getBytes("ISO8859_1"), "gb2312");
return str;
}
} catch (Exception e) {
return null;
}
}
try {
if (str == null)
return null;
else {
str = new String(str.getBytes("ISO8859_1"), "gb2312");
return str;
}
} catch (Exception e) {
return null;
}
}
public class getStr(String str) {
String str;
byte[] str1=new String(str.getBytes,"8859_1");
return str1;
}
byte[] str1=new String(str.getBytes,"8859_1");
return str1;
}