request.setCharacterEncoding("utf-8");
String credit=request.getParameter("credit");
String major=new String(request.getParameter("major").getBytes("ISO-8859-1"),"utf-8");
action中:
this.major = new String(major.getBytes("iso-8859-1"),"utf-8");
2022-11-09 14:20:07
request.setCharacterEncoding("utf-8");
String credit=request.getParameter("credit");
String major=new String(request.getParameter("major").getBytes("ISO-8859-1"),"utf-8");
action中:
this.major = new String(major.getBytes("iso-8859-1"),"utf-8");