1.Goland-Settings设置
点击Goland菜单栏File-Settings-Editor-File Encodings.
设置Global Encoding为 UTF-8
设置Project Encoding为 UTF-8
设置 Default encoding for properties files为 UTF-8
2.设置Goland目录中的文件
在goland.exe.vmoptions和goland64.exe.vmoptions文件末尾
添加-Dfile.encoding=UTF-8
(这两个文件位于安装Goland安装所在目录的bin目录下。)
3.修改Goland-VM Options
点击Goland菜单栏的Help-Edit Custom VM Options,
在打开的文件末尾处添加参数-Dfile.encoding=UTF-8
4.重启Goland
乱码问题解决!