Re: Unicode in MIMEText

2005-11-28 Thread Damjan
patch submitted... > Thanks for taking the time to improve the quality of the Python library. Do you think it would be possible to do some kind of an automatic comprehensive test of compatibility of the standard library with unicode strings? -- damjan -- http://mail.python.org/mailman/listi

Re: Unicode in MIMEText

2005-11-26 Thread Steve Holden
Damjan wrote: >>... and being concerned to improve the library you logged this patch in >>Sourceforge for consideration by the developers? >> >>That's the only way to guarantee proper consideration of your fix. > > > Ok I will, can you confirm that the patch is correct? > Maybe I got something wr

Re: Unicode in MIMEText

2005-11-25 Thread Damjan
> ... and being concerned to improve the library you logged this patch in > Sourceforge for consideration by the developers? > > That's the only way to guarantee proper consideration of your fix. Ok I will, can you confirm that the patch is correct? Maybe I got something wrong? -- damjan -- h

Re: Unicode in MIMEText

2005-11-23 Thread Steve Holden
Damjan wrote: >>Why doesn't this work: >> >>from email.MIMEText import MIMEText >>msg = MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') >>msg.set_charset('utf-8') >>msg.as_string() > > ... > >>UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: >>ordinal not i

Re: Unicode in MIMEText

2005-11-23 Thread Damjan
> Why doesn't this work: > > from email.MIMEText import MIMEText > msg = MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') > msg.set_charset('utf-8') > msg.as_string() ... > UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: > ordinal not in range(128) It's a r

Unicode in MIMEText

2005-11-23 Thread Damjan
Why doesn't this work: from email.MIMEText import MIMEText msg = MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') msg.set_charset('utf-8') msg.as_string() Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/email/Message.py", line 129, in as_string