0

如何从库函数中导出 UTF8 编码字符串?

    extern "C" __declspec(dllexport) QString Test()
{
    QString tmp = "日本";
    return tmp;
}
4

1 回答 1

2
QTextCodec::setCodecForCStrings( QTextCodec::codecForName("utf8") );

帮助。

于 2012-12-21T11:25:03.953 回答