因为用到所以就写了个加密的方法
如您发现有任何错误请Mailto我,
useroot@hotmail.com
/**
* 转换汉字编码
* @param strs
* @return
*/
public static String changeEncode(String strs) {
String temp;
try {
temp = new String(strs.getBytes("ISO8859-1"), "GBK");
} catch (Exception e) {
temp = "";
}
return temp;
}
如您发现有任何错误请Mailto我,
useroot@hotmail.com
/**
* 转换汉字编码
* @param strs
* @return
*/
public static String changeEncode(String strs) {
String temp;
try {
temp = new String(strs.getBytes("ISO8859-1"), "GBK");
} catch (Exception e) {
temp = "";
}
return temp;
}