页面传参中文参数乱码

原文引用 大专栏  https://www.dazhuanlan.com/2019/08/26/5d6336d92a92a/


页面传参中文参数乱码
  1. 使用 request.setCharacterEncoding('utf-8');
  2. 使用 request.getParameter("handlerType").getBytes("ISO-8859-1"),"utf-8") 接受传递的参数值

猜你喜欢

转载自www.cnblogs.com/petewell/p/11411023.html