初次安装CodeBlocks,一运行就出现no iconv implementation, cannot convert from UTF-8 to GBK

初次安装CodeBlocks,一运行就出现no iconv implementation, cannot convert from UTF-8 to GBK
,这是怎么回事啊,如何解决?

瞅瞅行不行
https://blog.csdn.net/qq_34837137/article/details/60777747

编码问题,你是windows吧?

好像是编译器缺少iconv部件,前段时间遇到过,这个部件是全球语言编码转换器,缺少了就不会支持GBK编码中文的源代码编译,大至mingw gcc8.02版就是这样的,你只有使用notepad++, vscode之类的将源代码从GBK转换到utf-8编码,然后再编译,就会出中文字符。

你这样试试

img