Fixed utf8 issue with avatar cache and server logging.
This commit is contained in:
1 parent
191f2f7b25
commit
aa07ae1741
13 files changed
+35
-5
No files matched your search
@@ -31,6 +31,12 @@ std::string QtHelper::stringToUtf8(const std::string &myString) {
|
||||
return myUtf8String;
|
||||
}
|
||||
|
||||
std::string QtHelper::stringFromUtf8(const std::string &myString) {
|
||||
QString tmpString = QString::fromUtf8(myString.c_str());
|
||||
|
||||
return tmpString.toStdString();
|
||||
}
|
||||
|
||||
std::string QtHelper::getDefaultLanguage() { return QLocale::system().name().toStdString(); }
|
||||
|
||||
std::string QtHelper::getDataPathStdString(const char * /*argv0*/)
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
~QtHelper();
|
||||
|
||||
std::string stringToUtf8(const std::string &);
|
||||
std::string stringFromUtf8(const std::string &);
|
||||
std::string getDefaultLanguage();
|
||||
|
||||
std::string getDataPathStdString(const char *argv0);
|
||||
|
||||
Reference in new issue
Block a user