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? Thank you. -- http://mail.python.org/mailman/listinfo/python-list