Gilles Ganault wrote:
> On Fri, 14 Nov 2008 11:01:27 +0100, "Martin v. Löwis"
> <[EMAIL PROTECTED]> wrote:
>> Add
>> print type(output)
>> here. If it says "unicode", reconsider the next line
>>
>>> print output.decode('utf-8')
>
> In case the string fetched from a web page turns out not to be Unicode
> and Python isn't happy, what is the right way to handle this, know
> what codepage is being used?
Can you first please report what happened when you add the print statement?
Thanks,
Martin
--
http://mail.python.org/mailman/listinfo/python-list