[Python-Dev] Printing and __unicode__

Guido van Rossum guido@python.org
Wed, 13 Nov 2002 14:26:52 -0500

> StringIO *is* Unicode-aware.

Though it acts somewhat as if its default encoding is "ascii".  This
is somewhat inconsistent: you can write arbitrary Unicode strings, but
the Unicode won't be converted to ASCII.  ASCII is converted to
Unicode though.

And of course cStringIO doesn't support Unicode at all.

--Guido van Rossum (home page: http://www.python.org/~guido/)