Printing UTF-8 mail to terminal

Alan Gauld learn2program at gmail.com
Thu Oct 31 17:53:31 EDT 2024


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





More information about the Python-list mailing list