写一个类方法用来处理乱码:public class DbUtil { public static String getStrByEncoding(String input){
String result = "";
try{
result = new String(input.getBytes("ISO-8859-1"),"gb2312");
}catch(Exception ex){
ex.printStackTrace();
}
return result;
}对字段进行处理:
  temp = (String)accountSetForm.get("f_id");
String f_id = (temp == null)?"":DbUtil.getStrByEncoding(temp);

temp = (String)accountSetForm.get("f_mc");
String f_mc = (temp == null)?"":DbUtil.getStrByEncoding(temp);

temp = (String)accountSetForm.get("f_bz");
String f_bz = (temp == null)?"":DbUtil.getStrByEncoding(temp);

temp = request.getParameter("page");
temp = (temp == null)?"":temp;
String page = (temp.equals(""))?"1":DbUtil.getStrByEncoding(temp);
request.setAttribute("page", page);
temp = request.getParameter("path");