qianxiaoPro

解决方法是在response.getWriter()前加上response.setContentType("text/html; charset=UTF-8");

 

//response.setCharacterEncoding("utf-8");单纯的这么设置一样有乱码

正确做法:

response.setContentType("text/html; charset=UTF-8");

response.getWriter();

  

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-10-26
相关资源
相似解决方案