get 传过来的中文处理:String UserName=new String(request.getParameter("name").getBytes("iso-8859-1"));
post 传过来的中文处理:request.setCharacterEncoding("GBK");response.setCharacterEncoding("GBK");
整个filter吧