On Thu, Mar 20, 2014 at 11:01:23AM +0100, Louis-David Mitterrand wrote: > In gnome when I reply some french emails with accented chars I > sometimes get weird wide chars in place of the accented characters in > vim. The accented character would appear normally when reading the > message in mutt's pager but become a double character in vim's quoted > text.
What are $charset and $send_charset set to in Mutt? More importantly, are you setting either of these variables in your .muttrc? On Thu, Mar 20, 2014 at 01:10:33PM +0100, Louis-David Mitterrand wrote: > Also I tried adding "set encoding=utf-8" to my .vimrc without change. This is virtually always a mistake, unless you are doing something very unusual and are quite sure that you need to be. Mutt depends on a host of other programs, and all of them (Mutt, vim, xterm, and any other tools in the tool chain) need to agree on what your character set is. *BY FAR* the best way to do this is to make sure your locale is set up properly, and *DO NOT* explicitly tell any of those tools what charset to use: Let them inherit it correctly from your locale environment settings. We know this: - Your locale looks fine - as it happens the encoding you set in vim should match - Characters display correctly in the pager This suggests that your terminal's locale matches the font(s) it uses, as well as the actual locale you're using. So that's not the problem. The data that vim is working on is wrong, and Mutt is responsible for generating the temporary file that the editor uses... So I suspect you've set one or more of Mutt's own charset-related variables to a value which is wrong. Check that $charset and $send_charset are sane. If that doesn't help and you're still having trouble, try this post: http://markmail.org/message/f2d7wdv23z7qksgo On Thu, Mar 20, 2014 at 11:36:29AM +0000, Paul wrote: > Try "set encoding=utf-8" as the first thing in your .vimrc. Paul, this is bad advice; please stop telling people to do this. It's much more likely to make things worse, than better. -- 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.
pgpXLWkbm3qSF.pgp
Description: PGP signature