1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 14:27:56 +00:00

Fix encoding in Web UI on non-unicode systems

This commit is contained in:
Christophe Dumez 2010-06-01 14:34:58 +00:00
parent 5b07c488b0
commit f0e23ab1fc

View File

@ -39,7 +39,8 @@ void HttpResponseGenerator::setMessage(const QByteArray message)
void HttpResponseGenerator::setMessage(const QString message) void HttpResponseGenerator::setMessage(const QString message)
{ {
setMessage(message.QString::toLocal8Bit()); // This must be UTF-8!
setMessage(message.toUtf8());
} }
void HttpResponseGenerator::stripMessage() void HttpResponseGenerator::stripMessage()