首先在Setting->editor->General settings->Encoding settings->use this encoding中选择as default encoding

图例:

Code Block 中文乱码解决方案

然后在Setting->compiler中添加语句

-finput-charset=GBK

-fexec-charset=GBK

图例:

Code Block 中文乱码解决方案

大功告成!

相关文章:

  • 2021-12-08
  • 2021-12-18
  • 2021-06-19
  • 2021-06-15
  • 2021-12-02
  • 2021-12-25
  • 2021-04-14
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-09-11
  • 2021-11-21
相关资源
相似解决方案