MinGW Unicode错误

时间:2017-10-14 20:58:33

标签: c++ unicode mingw

"english language" - 好的 "other language" - 好的 L"english language" - 好的 L"other language" - 错误:转换为执行字符集:非法字节                     序列

例如:

#include <iostream>

using namespace std;

int main()
{
    wcout << L"ś" << endl;
    return 0;
}

给出了错误。

我使用最新版本的MinGW c ++编译器,我想制作多语言应用程序,这是目前的主要问题。

1 个答案:

答案 0 :(得分:0)

问题在于我的IDE。它以不良编码保存源文件,将其更改为UTF-8解决了它。