[issue14360] email.encoders.encode_quopri doesn't work with python 3.2
R. David Murray
report at bugs.python.org
Wed Mar 21 18:26:46 CET 2012
R. David Murray <rdmurray at bitdance.com> added the comment:
Oh, you are right. I even noted that bug in my PyCon talk, but immediately forgot about it :( I do intend to fix it.
You can get it to work by explicitly passing the charset:
>>> x = MIMEText('йцукен', _charset='utf8')
>>> str(x)
'Content-Type: text/plain; charset="utf8"\nMIME-Version: 1.0\nContent-Transfer-Encoding: base64\n\n0LnRhtGD0LrQtdC9\n'
When I asked the use case, I meant specifically for calling encode_quopri, etc. Given the above, do you need it anymore?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14360>
_______________________________________
More information about the Python-bugs-list
mailing list