different encodings for unicode() and u''.encode(), bug?

John Machin sjmachin at lexicon.net
Wed Jan 2 05:47:01 EST 2008


On Jan 2, 8:44 pm, John Machin <sjmac... at lexicon.net> wrote:

> (1) Try these at the Python interactive prompt:
>
> unicode('', 'latin1')

Also use those 6 cases to check out the difference in behaviour
between unicode(x, y) and x.decode(y)



More information about the Python-list mailing list