我是靠谱客的博主 高大保温杯,这篇文章主要介绍a标签点击中文文件名乱码,通过a标签href属性跳转后台乱码问题,现在分享给大家,希望可以做个参考。

通过a标签href属性跳转后台乱码问题,试过request.setCharacterEncoding("UTF-8");设置,没有用。

页面代码

查看更多>>

后台代码

@RequestMapping("/findTypeTitle")

public String findTypeTitle(Model model,String title_type) throws UnsupportedEncodingException{

request.setCharacterEncoding("UTF-8");

//response.setContentType("text/html; charset=utf-8");//也实现不了

System.out.println(request.getParameter("title_type"));//输出

qtListType3=qtbiz.findTypeTitle(request.getParameter("title_type"));

request.getSession().setAttribute("qtListType3", qtListType3);

return "problem-more";

}

想问问还有没有其他方法实现,解决乱码问题

最后

以上就是高大保温杯最近收集整理的关于a标签点击中文文件名乱码,通过a标签href属性跳转后台乱码问题的全部内容,更多相关a标签点击中文文件名乱码内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(110)

评论列表共有 0 条评论

立即
投稿
返回
顶部