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:
parent
5b07c488b0
commit
f0e23ab1fc
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user