// 乱码解决
String agent = request.getHeader("User-Agent");
boolean isMSIE = (agent != null && (agent.indexOf("MSIE") != -1|| agent.indexOf("Trident") != -1));
if(isMSIE){ //是IE浏览器
repeatVal = new String(repeatVal.getBytes("ISO-8859-1"),"gb18030");
}else{
repeatVal = new String(repeatVal.getBytes("ISO-8859-1"),"UTF-8");
}
ie9以下(不包含),关键字为“MSIE”,ie9以上为“Trident”。