具体操作 File -> Settings -> Default Settings -> Editor -> File Encodings:Global Encoding: UTF-8Project Encoding : UTF-8Default encoding for properties files: UTF-8 图片展示 然后,在main.cpp右下角选择语言编码格式为GBK,在弹出的页面上选择convert,如下图所示;