当java在传参乱码时,可使用以下方法:

HttpServletRequest request = ServletActionContext.getRequest();
HttpSession session = request.getSession();
title = new String( request.getParameter("title").getBytes("8859_1"), "utf8" );

 

 

【版权声明】转载请注明出处 http://www.cnblogs.com/hsjava1/p/8694760.html

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-08-30
  • 2021-08-18
  • 2022-12-23
相关资源
相似解决方案