spring mvc在controller forward html时可能出现乱码,基本乱码为iso-88591。
此时需要
response.setContentType("text/html;charset=utf-8"); response.setCharacterEncoding("UTF-8"); return new ModelAndView("forward:/static_q/"+htmlFileName);
spring mvc在controller forward html时可能出现乱码,基本乱码为iso-88591。
此时需要
response.setContentType("text/html;charset=utf-8"); response.setCharacterEncoding("UTF-8"); return new ModelAndView("forward:/static_q/"+htmlFileName);