问题描述在项目里其他的中文正常,http请求的响应数据会中文乱码。

解决:

1 idea安装目录/bin/ 下的 idea64.exe.vmoptionsidea.exe.vmoptions 都加入-Dfile.encoding=UTF-8

idea下http响应乱码

2 在tomcat的配置项中的 VM options中加入 -Dfile.encoding=UTF-8 命令,然后重启idea方可生效

idea下http响应乱码

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-06-18
  • 2021-05-28
  • 2021-06-17
相关资源
相似解决方案