<<< Date Index >>>     <<< Thread Index >>>

Re: How does mutt choose charset encoding when sending messages?



Hello Kai,

 On Monday, March 20, 2006 at 21:06:32 +0800, Kai Wang wrote:

> My locale and terminal is set to gb2312 charset(it is for chinese
> character) But sometime I also need writing messages in Swedish.

    You can try:

| set 
send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1250:gb2312:utf-8"

    Which should send as Latin-1 the mails you type in Swedish, and as
GB2312 the Chinese ones.


> When I compose those [Swedish] messages I save the file in iso8859-1
> charset in the editor(emacs).

    That's the mistake: The $editor *must* read and save the composed
text in GB2312, the current locale's charset. Any too smart $editor
feature (like charset autosensing on read, or saving in minimal charset)
should be disabled when called from Mutt. Just dumbly follow the locale.


Bye!    Alain.
-- 
When you want to reply to a mailing list, please avoid doing so from a
digest. This often builds incorrect references and breaks threads.