nescafeboy1 发表于 2017-2-4 11:49:50

idea tomcat server编译控制台乱码解决

 
 
1、windows下改intellij安装目录下bin\idea.exe.vmoptions文件
加上 -Dfile.encoding=UTF-8
 
  limux 打开下面的配置文件:
  /Applications/IntelliJ IDEA 12.app/Contents/Info.plist
  在IntelliJ IDEA 12.app文件右键选择“Show Contents”即可看到Contents目录。
  找到key等于VMOptions位置,这里设置的虚拟机的参数,在后面追加下面的参数保存文件。
  -Dfile.encoding=UTF-8
 
2、设置IDEA server 的编码如下保持一致:
 
tomcat server -- >server->VM options
 
设置 VM options 为 -Dfile.encoding=UTF-8  如下图:
页: [1]
查看完整版本: idea tomcat server编译控制台乱码解决