request:乱码问题
//已post方式提交
request.setCharacterEncoding("UTF-8");
String name=request.getParameter("username");
System.out.println(name);
//已get方式提交
String name1=request.getParameter("username");
name1=new String (name1.getBytes("iso8859-1"),"UTF-8");
System.out.println("name1-->"+name1);