Get document as normal text and not as binary data

Markus Franz mail at
Tue Mar 29 20:13:47 CEST 2005

Kent Johnson wrote:

> My guess is the html is utf-8 encoded - your sample looks like 
> utf-8-interpreted-as-latin-1. Try
> contents ='utf-8')

YES! That helped!

I used the following:

contents ='utf-8')
contents = contents.encode('iso-8859-15')

That was the perfect solution for my problem! Thanks a lot!

Best regards


More information about the Python-list mailing list