How does mutt know to automatically choose charset?
Derek Martin
invalid at pizzashack.org
Fri Feb 12 16:05:36 UTC 2021
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20210212/bb465b95/attachment.asc>
More information about the Mutt-users
mailing list