From f0e23ab1fcb53709d50341d55985baab5918c8dd Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 1 Jun 2010 14:34:58 +0000 Subject: [PATCH] Fix encoding in Web UI on non-unicode systems --- src/httpresponsegenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()