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