Usually the best way to do the conversion is to use a method from Utf8 , but the problem is that you have locale-specific strings.
In these cases, it is preferable to use from Local8Bit . Example:
std::string str = "Γ«xample"; QString qs = QString::fromLocal8Bit(str.c_str());
Tarod 02 Sep '15 at 12:34 2015-09-02 12:34
source share