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
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
> ... 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
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
> 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