(1)在Edit->File ecoding中,选中以下两项
codeblocks使用中文出现illegal byte sequence/failure to convert GBK to UTF-8的解决方案

(2)

在Setting->Compiler settings->Global compiler settings->Other compiler options中,

输入以下两项:

-finput-charset=UTF-8
-fexec-charset=GBK

codeblocks使用中文出现illegal byte sequence/failure to convert GBK to UTF-8的解决方案

(3)之后可以正常使用中文,测试平台为win10,codeblocks版本为17.12

相关文章:

  • 2021-09-11
  • 2021-10-07
  • 2022-12-23
  • 2021-11-17
  • 2022-03-10
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2021-09-30
  • 2021-09-12
  • 2022-12-23
  • 2021-06-07
  • 2021-12-31
  • 2021-09-21
相关资源
相似解决方案