From 5e4838467afe08ea4900018a12f20b7d2e3565a3 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 12 Apr 2015 16:58:40 +0200 Subject: [PATCH] fix toasty encoding --- src/plugins/secondary_backends/toasty/toasty.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/secondary_backends/toasty/toasty.cpp b/src/plugins/secondary_backends/toasty/toasty.cpp index 710470a..a64ac56 100644 --- a/src/plugins/secondary_backends/toasty/toasty.cpp +++ b/src/plugins/secondary_backends/toasty/toasty.cpp @@ -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;