XMLGenerator / StringIO / ordinal not in range

Achim Domma achim.domma at syynx.de
Tue Oct 15 06:04:37 EDT 2002


Hi,

I try to produce an XML string in memory using XMLGenerator and StringIO.
Everything works fine as long as I dont' try to write Non-ASCII charakters
to the stream. If I would write to file, I would open it with codecs.open,
but how can I tell StringIO to accept utf-8 encoding?

greetings
Achim





More information about the Python-list mailing list