Re: Printing UTF-8 mail to terminal

Liste des GroupesRevenir à cl python 
Sujet : Re: Printing UTF-8 mail to terminal
De : learn2program (at) *nospam* gmail.com (Alan Gauld)
Groupes : comp.lang.python
Date : 31. Oct 2024, 23:53:31
Autres entêtes
Message-ID : <mailman.64.1730411614.4695.python-list@python.org>
References : 1
User-Agent : Mozilla Thunderbird
On 31/10/2024 20:50, Cameron Simpson via Python-list wrote:

That looks to me like quoted-printable. This is an encoding for binary
transport of text to make it robust against not 8-buit clean
...

If you're just dealing with this directly, use the `quopri` stdlib
module: https://docs.python.org/3/library/quopri.html

One of the things I love about this list are these little features
that I didn't know existed. Despite having used Python for over 25
years, I've never noticed that module before! :-)

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




Date Sujet#  Auteur
31 Oct 24 * Re: Printing UTF-8 mail to terminal5Alan Gauld
1 Nov 24 +- Re: Printing UTF-8 mail to terminal (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
1 Nov 24 `* Re: Printing UTF-8 mail to terminal3Eli the Bearded
1 Nov 24  +- Re: Printing UTF-8 mail to terminal1Jon Ribbens
2 Nov 24  `- Re: Printing UTF-8 mail to terminal (Posting On Python-List Prohibited)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal