Bug 22722

Summary: Fix logging of binary data
Product: Telepathy Reporter: Mads Chr. Olesen <shiyee>
Component: pymsnAssignee: Ali Sabil <ali.sabil>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: lfrb
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Unicode HTTPmessages, and log unicode HTTPmessages

Description Mads Chr. Olesen 2009-07-11 04:56:22 UTC
Created attachment 27587 [details] [review]
Unicode HTTPmessages, and log unicode HTTPmessages

As mentioned in http://lists.freedesktop.org/archives/telepathy/2009-June/003429.html pymsn sometimes try to log data from the server. This data can contain contact's nicknames, which can have special characters (like æøå for danes).

The attached patches fixes it, by re-encoding to unicode. The fix in HTTP.py might not be what you want (uses the cgi module), but it seems the MSN servers incorrectly report the Content-Type as "text/html; iso-8859-1", which doesn't parse quite right.
Comment 1 Louis-Francis Ratté-Boulianne 2009-07-24 09:09:46 UTC
Fixed in papyon git master. thanks

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.