你传递时,进行两次encoder,浏览器默认的编码不一致,可能导致提交到数据库就是乱码
编码用utf-8,不然就会乱码
编码用utf-8,不然就会乱码
String xx=new String(request.getParameter("name").getBytes("ISO-8859-1"),"utf-8") ;