[Email-SIG] Ensuring 7 bit encoding
Stephen J. Turnbull
stephen at xemacs.org
Fri Aug 28 08:05:51 CEST 2009
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.
More information about the Email-SIG
mailing list