例如请求中有: /score?type=Mana&name=${user.name}
*******************************************************
servlet获取时出现中文乱码的解决:
String name = new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");
例如请求中有: /score?type=Mana&name=${user.name}
*******************************************************
servlet获取时出现中文乱码的解决:
String name = new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");
转载于:https://www.cnblogs.com/niew/p/9377564.html