Unicode perplex

Ivan Voras ivoras at __geri.cc.fer.hr
Mon Jun 21 17:23:41 EDT 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

does

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

work?


-- 
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