fix toasty encoding

This commit is contained in:
Patrick von Reth 2015-04-12 16:58:40 +02:00
parent b046f7bc8d
commit 5e4838467a
1 changed files with 3 additions and 3 deletions

View File

@ -47,17 +47,17 @@ void Toasty::slotNotify(Notification notification)
QHttpMultiPart *mp = new QHttpMultiPart(QHttpMultiPart::FormDataType);
QHttpPart title;
title.setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"title\""));
title.setBody(Snore::toPlainText(notification.title()).toLatin1().constData());
title.setBody(Snore::toPlainText(notification.title()).toUtf8().constData());
mp->append(title);
QHttpPart text;
text.setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\""));
text.setBody(Snore::toPlainText(notification.text()).toLatin1().constData());
text.setBody(Snore::toPlainText(notification.text()).toUtf8().constData());
mp->append(text);
QHttpPart app;
app.setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"sender\""));
app.setBody(notification.application().name().toLatin1().constData());
app.setBody(notification.application().name().toUtf8().constData());
mp->append(app);
QHttpPart icon;