// 此处是设置编码
try {
nameOrType = new String(nameOrType.getBytes("8859_1"), "utf8");
} catch (UnsupportedEncodingException e1) {
log.error("编码转换异常,原因如下:"+e1.getMessage());
}
try {
nameOrType = new String(nameOrType.getBytes("8859_1"), "utf8");
} catch (UnsupportedEncodingException e1) {
log.error("编码转换异常,原因如下:"+e1.getMessage());
}