Sujet : Re: Printing UTF-8 mail to terminal
De : learn2program (at) *nospam* gmail.com (Alan Gauld)
Groupes : comp.lang.pythonDate : 31. Oct 2024, 22: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 GAuthor of the Learn to Program web sitehttp://www.alan-g.me.uk/http://www.amazon.com/author/alan_gauldFollow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos