This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jribbens
Recipients jribbens
Date 2017-04-10.17:45:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491846340.8.0.762117767462.issue30033@psf.upfronthosting.co.za>
In-reply-to
Content
The email module, when creating text parts using character encoding utf-8, base64-encodes the output even though this is often inappropriate (e.g. if it is a Western language it is almost never appropriate).

>>> from email.mime.text import MIMEText
>>> m = MIMEText("hello", _charset="utf-8")
>>> m.as_string()
'Content-Type: text/plain; charset="utf-8"\nMIME-Version: 1.0\nContent-Transfer-Encoding: base64\n\naGVsbG8=\n'
History
Date User Action Args
2017-04-10 17:45:40jribbenssetrecipients: + jribbens
2017-04-10 17:45:40jribbenssetmessageid: <1491846340.8.0.762117767462.issue30033@psf.upfronthosting.co.za>
2017-04-10 17:45:40jribbenslinkissue30033 messages
2017-04-10 17:45:40jribbenscreate