Problems with email.Generator.Generator
Peter Otten
__peter__ at web.de
Mon Sep 11 15:11:21 EDT 2006
Chris Withers wrote:
> At worst, and most likely based on my past experience of (c)StringIO
> being used to accumulate output, it won't make a jot of difference...
What past experience?
>>> StringIO.StringIO().write(unichr(128))
>>> cStringIO.StringIO().write(unichr(128))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character u'\x80' in position
0: ordinal not in range(128)
Peter
More information about the Python-list
mailing list