乱码的情况

1、springMVC:jsp页面向controller传值,例如;park/findByTag?tag=大大班

 controller乱码,

解决方案:

String tag=request.getParameter("tag");

  tag= new String(tag.getBytes("ISO-8859-1"),"UTF-8");

posted on 2016-03-15 21:11  xiaohehe2  阅读(141)  评论(0编辑  收藏  举报

导航