implement method to convert escaped unicode to utf-8 encoded string

This commit is contained in:
wmayer
2016-07-24 16:14:40 +02:00
parent 0c5eefad60
commit 66dffafe88
2 changed files with 190 additions and 169 deletions

View File

@@ -156,6 +156,7 @@ struct BaseExport Tools
static std::wstring widen(const std::string& str);
static std::string narrow(const std::wstring& str);
static std::string escapedUnicodeFromUtf8(const char *s);
static std::string escapedUnicodeToUtf8(const std::string& s);
/**
* @brief toStdString Convert a QString into a UTF-8 encoded std::string.