(Alain, I'm Cc'ing you in case you'd like to send some insight in our direction. :-)
* Kurt Roeckx [Fri, 25 Aug 2006 19:09:32 +0200]: > Hi, Hey Kurt, > I'm using a latin1 terminal, but I've set up vim to use utf-8 files by > default, but fall back to latin1. Vim also shows latin1 on the screen. > But I can't seem to get mutt and vim to agree on the charset for the > file being used. Hm. Mutt assumes that the contents provided by the user editor are in $charset, which is reasonable since this variable is initialized from the user's locale automatically. As far as I know, there is no way to tell Mutt that the files provided by the editor are in some other encoding. And you really don't want to change $charset by hand, since then it won't match your terminal encoding, and will be unable to read the text. In your scenario, I think the interesting question is why you have: > In vim: ":set fileencoding" returns: > fileencoding=utf-8 Did you set it by hand? > It seems that mutt always considers the encoding of the filename to be > the same as for the terminal, and that's not really what I want. Why, if I may ask? Seems like a not-that-useful setup. But hey, if that's what you really really want, all I can offer you is a macro: macro compose y "<first-entry><edit-type>\Cutext/plain; charset=utf-8<enter>n<send-message>" This basically overrides "y" to "hey, Mutt, my editor gave you utf-8" + "y". > So, I was reading the documentation, and it seems that the only thing > that I should consider changing seems to be file_charset. I've tried > setting that to various things like just "utf-8", or > "utf-8:iso-8859-1", but it doesn't seem to be changing anything. I think file charset applies to text attachments, but not to the text body itself, I think. HTH, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Under capitalism, man exploits man. Under communism, it's just the opposite. -- J.K. Galbraith -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]