Sujet : Re: Printing UTF-8 mail to terminal (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 31. Oct 2024, 20:35:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vg0m6l$2qq89$2@dont-email.me>
References : 1
User-Agent : Pan/0.160 (Toresk; )
On Thu, 31 Oct 2024 16:33:41 +0100, Loris Bennett wrote:
Dies ist eine =C3=9Cbung.
What do I need to do to prevent the body from getting mangled?
I don’t think that’s actually getting mangled, that is how the actual
message body looks. What you have there is called “quoted printable”
encoding, and it’s a standard way to ensure the message body consists only
of 7-bit ASCII.
If you look at the source of the message, you should see a header line
like “Content-Transfer-Encoding: quoted-printable”. This is how your email
client knows how to display the text properly.