我有一个问题:
std::string str("character/test/raw");
qDebug() << QString::fromStdString(str);
输出结果为:
"]AIIIIIIIIIIIIIIIIIIIIIIIIIIIII"
我认为问题出在编码上,但不知道如何解决。请帮忙。
QString::fromUtf8( str.c_str() )
应该就足够了。 - BЈовић