1、request.setCharacterEncoding只对POST请求起作用。GET请求用new String(paramterData.getBytes("iso8859-1"),"UTF-8");

2、response.setContentType指定HTTP 响应的编码,同时指定了浏览器显示的编码. 等价于response.setCharacterEncoding指定HTTP 响应的编码和response.setHeader("contentType", "text/html; charset=utf-8”)指定了浏览器显示的编码

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2020-01-18
  • 2021-10-31
  • 2022-12-23
  • 2021-08-07
  • 2021-08-07
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
相关资源
相似解决方案