在idea安装目录的bin下修改idea.exe.vmoptions和idea64.exe.vmoptions,添加
-Dfile.encoding=UTF-8
-Dconsole.encoding=UTF-8