只需在后台获得request后,设置request.setCharacterEncoding("UTF-8");
,即可解决乱码问题
1 | public static HttpServletRequest getRequest() throws UnsupportedEncodingException { |
只需在后台获得request后,设置request.setCharacterEncoding("UTF-8");
,即可解决乱码问题
1 | public static HttpServletRequest getRequest() throws UnsupportedEncodingException { |