Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从库函数中导出 UTF8 编码字符串?
extern "C" __declspec(dllexport) QString Test() { QString tmp = "日本"; return tmp; }
QTextCodec::setCodecForCStrings( QTextCodec::codecForName("utf8") );
帮助。