CodeBlocks 报错:illegal byte sequence 和 failed to convert GBK to UTF-8

1、illegal byte sequence

 解决方法:Edit->File encoding->Save byte-order-mark(BOM),UTF-8

2、failed to convert GBK to UTF-8

 解决方法:Setting->Compiler->Compiler settings-> Other compiler options 

输入:-fexec-charset=GBK   -finput-charset=UTF-8

原文地址:https://www.cnblogs.com/JXQQQ/p/13279532.html