Unicode perplex

Ivan Voras ivoras at __geri.cc.fer.hr
Mon Jun 21 23:23:41 CEST 2004

John Roth wrote:

> The problem is that I've got a normal string where
> the byte stream is actually UTF-8. How do I turn
> it into a Unicode string? Remember that the trick


str2 = str.decode('utf-8')


What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't
you understand?

More information about the Python-list mailing list