1、中文乱码:
Window8.1下的设定:
IDE->setting->compiler->Global compiler Setting->compiler Setting下的Other option, 添加如下:
-fexec-charset=GBK -finput-charset=UTF-8
保存后,需要重新新建个工程文件,试一下。
CentOS 7下的设定:
两方面:
1、IDE->Editor->General Setting->Other setting, 如下设置:
2、IDE->Environment->下将:
设定为:
注意:
1、所有这些该的需要新建新的工程文件才能生效。
2、如果windows下没效果,在试一下加上CentOS下的第一步。