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 r.david.murray
Recipients r.david.murray
Date 2009-11-10.22:32:45
SpamBayes Score 0.07530014
Marked as misclassified No
Message-id <1257892368.6.0.221695441401.issue7304@psf.upfronthosting.co.za>
In-reply-to
Content
The following produces a non-conformant message, since the us-ascii
charset is strictly 7bit:

>>> import email.message
>>> m = email.message.Message()
>>> m.set_payload("""A few lines
... of 8-bit text
...
... One high bit character: ².
... """, 'us-ascii')
>>> print m.as_string()
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit

A few lines
of 8-bit text

One high bit character: ².

>>>
History
Date User Action Args
2009-11-10 22:32:48r.david.murraysetrecipients: + r.david.murray
2009-11-10 22:32:48r.david.murraysetmessageid: <1257892368.6.0.221695441401.issue7304@psf.upfronthosting.co.za>
2009-11-10 22:32:46r.david.murraylinkissue7304 messages
2009-11-10 22:32:45r.david.murraycreate