On Thu, Mar 20, 2014 at 12:27:41PM -0500, Derek Martin wrote:
> 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?
$charset is "utf-8" but not set in my .muttrc
$send_charset is .muttrc as "us-ascii:iso-8859-1:iso-8859-15:utf-8"
FWIW I am using debian's 1.5.23 package.
After further tests I noticed that when I reply only to the inline text part:
I 1 <no description> [text/plain, 8bit, utf-8,
0.1K]
A 2 plan_IT_2014.pdf [applica/pdf, base64, 206K]
by tagging it and typing ;r then all is well.
Hmmmm...
[5 minutes later]
Ahhh, now I get it (sorta): replying to the whole message includes in
the quoted text the output of "pdftotext -enc Latin1 plan_IT_2014.pdf"
(as per my ~/.mailcap).
When I remove "-enc Latin1" all is well.
So mutt/vim are confused because the ouput is mixed latin1/uft8, right?
Thanks guys for your help and ideas,