> What is going wrong here? According to the manual, StringIO should be able > to handle utf-8 strings... That's a bug in Python, introduced with rev 1.19 of StringIO.py, as part of patch #462596. Please submit a bug report on SF. Regards, Martin P.S. "unicode string" != "utf-8 string"