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

 

 

 

 

posted @ 2020-07-10 15:35  jxqjxq  阅读(2651)  评论(0编辑  收藏  举报