c++ - Convert std::string to QString -
i've got std::string content know contains utf-8 data. want convert qstring. how do that, avoiding from-ascii conversion in qt?
there's qstring function called fromutf8 takes const char*:
qstring str = qstring::fromutf8(content.c_str());
Comments
Post a Comment