thanks :) I have solved the problem. The problem was that I was moving from another computer and I had imported all home. In the old machine the locale was: lang=es...@euro LANGUAGE=es_ES:es:en_GB:en LC_CTYPE="es...@euro" LC_NUMERIC="es...@euro" LC_TIME="es...@euro" LC_COLLATE="es...@euro" LC_MONETARY="es...@euro" LC_MESSAGES="es...@euro" LC_PAPER="es...@euro" LC_NAME="es...@euro" LC_ADDRESS="es...@euro" LC_TELEPHONE="es...@euro" LC_MEASUREMENT="es...@euro" LC_IDENTIFICATION="es...@euro" lc_all=es...@euro
and it worked perfect. I don't know why in debian when you chosse a locale (in dpkg-reconfigure locales) it set LC_ALL to es...@euro if it is incorrect but this question is for others lists. But in the new computer I have set my locale to: $ locale LANG=ca_ES.UTF-8 LANGUAGE=ca:es:en LC_CTYPE="ca_ES.UTF-8" LC_NUMERIC="ca_ES.UTF-8" LC_TIME="ca_ES.UTF-8" LC_COLLATE="ca_ES.UTF-8" LC_MONETARY="ca_ES.UTF-8" LC_MESSAGES="ca_ES.UTF-8" LC_PAPER="ca_ES.UTF-8" LC_NAME="ca_ES.UTF-8" LC_ADDRESS="ca_ES.UTF-8" LC_TELEPHONE="ca_ES.UTF-8" LC_MEASUREMENT="ca_ES.UTF-8" LC_IDENTIFICATION="ca_ES.UTF-8" LC_ALL= well when I was in mutt the charset is utf-8: if I execute :set &charset ?charset charset=utf-8 but when I reply an email vim was in iso-8859-15 :set fenc fileencodiong=iso-8850-15 I didn't want that. I fixed the fileencondig options that vim can use utf8 with: set fileencodings=utf-8 and reply the email again. Now vim give me an error in the line 13! It is in the signature!! The signature file was imported from the old system and it was saved in iso-8859-15, when vim start to reply an email it detect the iso-8859-15 format of signature and it create a iso-8859-15 file for the reply and the characters of original email where bad intepreted. I have saved the .signature file with utf-8 and I have set the fileencodings of .vimrc set fileencodings=utf-8,iso-8859-15,ucs-bom,cp950,gb18030,default,latin1 with that seems that interpret the iso-8850-15 for the old files and the utf-8 for the new ones Thanks to all :) Roger On Fri, Apr 3, 2009 at 4:41 PM, Kyle Wheeler <kyle-m...@memoryhole.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday, April 3 at 09:24 AM, quoth Roger Casaponsa: >>letter in the original mail -->> letter when editing a reply >>ó -->> ó >>ò -->> ò >>à -->> "à " (with a space) >>' -->> â<80><99> > > Hmmmm. Those look like UTF-8 characters that are being misunderstood > by your editor. > > My guess is that your locale isn't specifying a characterset, even if > you think it is. Mutt should ONLY provide message files to your editor > (vim) in the characterset specified in the locale. > >>es_ES >>es...@euro >>es_ES.iso88591 >>es_es.iso885...@euro >>es_ES.utf8 > >>I think that es...@euro is the same that es_ES.ISO8859-15 because >>when I choose wich locales I want this is displayed like: es...@euro >>ISO-8859-15 > > Unfortunately, I'm pretty sure that's incorrect. Locale names use the > following syntax: > > language[_territory][.codese...@modifier] > > The "@euro" is a modifier that is primarily used for LC_MONETARY > issues, to indicate that there are multiple ways that monetary values > can be formatted (the old way and the euro way). It DOES NOT select a > character set. That's why you have both es...@euro *and* > es_es.iso885...@euro available. Make sense? > > Now, I read up a little bit on this (here: > http://www.open-std.org/jtc1/sc22/wg20/docs/n573-Euro_Handling.pdf), > and here's something I discovered: > > Note that the @modifier cannot be assigned to LC_ALL or LANG. It > is intended to modify a category (or categories) individually. > > So setting LANG to be es...@euro is completely incorrect! I didn't > know that. > > Try setting your LANG to be es_ES.utf8 and see what happens. I bet > that will fix it for you. You MAY want to set LC_MONETARY to be > es...@euro or something similar, but you shouldn't use the @euro > modifier in LANG or in LC_ALL. Does that make sense? > > ~Kyle > - -- > As we enjoy great Advantages from the Inventions of others we should > be glad of an Opportunity to serve others by any Invention of ours, > and this we should do freely and generously. > -- Benjamin Franklin > -----BEGIN PGP SIGNATURE----- > Comment: Thank you for using encryption! > > iEYEARECAAYFAknWIDAACgkQBkIOoMqOI16llQCdFu8DUXPja8WLZ3/Qg1BgvorS > gGkAnRbry6WyY1QHxOJqaVIJ1luT5tB9 > =ae+D > -----END PGP SIGNATURE----- >