Fixed utf8 issue with avatar cache and server logging.

This commit is contained in:
lotodore committed 2007-12-11 19:35:02 +00:00
1 parent 191f2f7b25
commit aa07ae1741
13 files changed
+35 -5

No files matched your search

+6
View File
@@ -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*/)
+1
View File
@@ -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);