R. David Murray writes:
> >>> 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: ².
>
> >>>
>
> Since 8bit isn't technically us-ascii, I wonder if this is a bug.
This is a bug.
_______________________________________________
Email-SIG mailing list
[email protected]
Your options:
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com