[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    [Panel-devel] [Patch] Twitter utf-8 problems
From:       "Ivo Anjo \( \[Knuckles\] \)" <knuckles () gmail ! com>
Date:       2007-08-28 22:52:34
Message-ID: 557ea2710708281552r184ecd4dma1c1e7dc5a1df2fd () mail ! gmail ! com
[Download RAW message or body]

I've been trying out plasma, and noticed that there was a bug on the
utf-8 encoding of the twitter applet that causes characters to being
encoded two times.

I'm new to this, frist patch and all (finally found an itch to
scratch), but here's my one-liner to solve the problem.

Keep up the good work :)
Ivo Anjo

["twitter_utf8.patch" (text/x-patch)]

Index: twitter.cpp
===================================================================
--- twitter.cpp	(revision 705903)
+++ twitter.cpp	(working copy)
@@ -359,7 +359,7 @@
                 "Content-Length: %2\r\n"
                 "Content-Type: application/x-www-form-urlencoded\r\n\r\n"
                 "%3" )
-                .arg( auth, QString::number(status.toUtf8().length()), status.toUtf8() );
+                .arg( auth, QString::number(status.toUtf8().length()), status );
     }
 
     m_header = QHttpResponseHeader();


_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic