Bug 22722 - Fix logging of binary data
Summary: Fix logging of binary data
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: pymsn (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Ali Sabil
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-11 04:56 UTC by Mads Chr. Olesen
Modified: 2009-07-24 09:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Unicode HTTPmessages, and log unicode HTTPmessages (1.62 KB, patch)
2009-07-11 04:56 UTC, Mads Chr. Olesen
Details | Splinter Review

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.