diff --git a/src/util/serialize-custom.hpp b/src/util/serialize-custom.hpp index 2fa1367b2..4682a2eb4 100644 --- a/src/util/serialize-custom.hpp +++ b/src/util/serialize-custom.hpp @@ -10,7 +10,7 @@ template <> struct Serialize { static rapidjson::Value get(const QString &value, rapidjson::Document::AllocatorType &a) { - rapidjson::Value ret(qPrintable(value), a); + rapidjson::Value ret(value.toUtf8(), a); return ret; }