[New-bugs-announce] [issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

R. David Murray report at bugs.python.org
Wed Mar 21 18:34:48 CET 2012


New submission from R. David Murray <rdmurray at bitdance.com>:

The MIMEText class of the email package in Python3 requires that a character set be specified in order for the resulting email to be valid.  If no character set is specified, it currently assumes ascii but puts a unicode payload in the message.  Because someone might actually be making use of this bug, I'm not going to backport a fix, but I do want to make utf8 the default if there are non-ascii characters in the input, in a similar fashion to how it is done for headers (well, now that *that* bug has been fixed).

----------
assignee: r.david.murray
components: Library (Lib)
keywords: easy
messages: 156501
nosy: mitya57, r.david.murray
priority: normal
severity: normal
stage: test needed
status: open
title: MIMEText should default to utf8 charset if input text contains non-ASCII
type: enhancement
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14380>
_______________________________________


More information about the New-bugs-announce mailing list