On Thu, Feb 04, 2021 at 08:42:31AM -0600, Peng Yu wrote: > mutt can adjust the charset based on the input. But it seems that > EmailMessage from python can not do this automatically. How does mutt > choose the charset automatically based on the content? Thanks.
You pasted the answer: > Content-Type: text/plain; charset=us-ascii ... > Content-Type: text/plain; charset=utf-8 As long as your terminal supports the specified content-type encoding in some fashion (including by being configured to use Unicode, which usually includes all of the necessary characters from all character sets), mutt uses these fields to re-encode the message content using the iconv program on your system. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
signature.asc
Description: PGP signature