Comment 4 for bug 495058

Revision history for this message
Olivier Tilloy (osomon) wrote :

That won't work. To fix this encoding mess, you'll probably need to do something like this:

   response = response.decode('iso-8859-1').encode('utf-8')

(assuming you are sure the original encoding is iso-8859-1 and the one declared in the document is utf-8).