How does unicode() work?

Carsten Haese carsten at uniqsys.com
Wed Jan 9 15:55:31 CET 2008


On Wed, 2008-01-09 at 15:33 +0100, Fredrik Lundh wrote:
> When mixing Unicode with byte strings, Python attempts to decode the 
> byte string, not encode the Unicode string.

Ah, I did not realize that. I never mix Unicode and byte strings in the
first place, and now I know why. Thanks for clearing that up.

-- 
Carsten Haese
http://informixdb.sourceforge.net





More information about the Python-list mailing list