Message95133
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: ².
>>> |
|
Date |
User |
Action |
Args |
2009-11-10 22:32:48 | r.david.murray | set | recipients:
+ r.david.murray |
2009-11-10 22:32:48 | r.david.murray | set | messageid: <1257892368.6.0.221695441401.issue7304@psf.upfronthosting.co.za> |
2009-11-10 22:32:46 | r.david.murray | link | issue7304 messages |
2009-11-10 22:32:45 | r.david.murray | create | |
|