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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -