通過a標簽href屬性跳轉后臺亂碼問題,試過request.setCharacterEncoding("UTF-8");設置,沒有用。頁面代碼<div class="extra">
<a target="_blank" href="Qtitle/findTypeTitle?title_type=${qtype.title_type}">查看更多>></a></div>后臺代碼@RequestMapping("/findTypeTitle")public String findTypeTitle(Model model,String title_type) throws UnsupportedEncodingException{ request.setCharacterEncoding("UTF-8"); //response.setContentType("text/html; charset=utf-8");//也實現(xiàn)不了 System.out.println(request.getParameter("title_type"));//輸出 qtListType3=qtbiz.findTypeTitle(request.getParameter("title_type")); request.getSession().setAttribute("qtListType3", qtListType3); return "problem-more"; }想問問還有沒有其他方法實現(xiàn),解決亂碼問題
通過a標簽href屬性跳轉后臺亂碼問題
紅糖糍粑
2018-11-22 18:19:55