diff --git a/src/httpresponsegenerator.cpp b/src/httpresponsegenerator.cpp index 24d3d0acd..0e3973c81 100644 --- a/src/httpresponsegenerator.cpp +++ b/src/httpresponsegenerator.cpp @@ -39,7 +39,8 @@ void HttpResponseGenerator::setMessage(const QByteArray message) void HttpResponseGenerator::setMessage(const QString message) { - setMessage(message.QString::toLocal8Bit()); + // This must be UTF-8! + setMessage(message.toUtf8()); } void HttpResponseGenerator::stripMessage()