Re: accent problem replying mails [SOLVED]
- To: mutt-users@xxxxxxxx
- Subject: Re: accent problem replying mails [SOLVED]
- From: Roger Casaponsa <casaponsa@xxxxxxxxx>
- Date: Fri, 3 Apr 2009 18:32:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=tyvCa2LZoSZKAYuBJ2GA0i+z4aAuTtcJhByyQvVcsqY=; b=ABrnnaR/G9ZQyUXEhpeAtQ6q5Ix/nRt0/ma2/IZ02yNF+G3yWopHAgFDq6letpnlUm EUll7L4Kxv1MikFIO78t4x428VPBmBIQIcTEcH3Q2RGp3PcYT5WKY7IL7BFAx8xY+XGf pMiBUp+cSW8pMsgxtW9FFUWogHyJerUBEomHA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=b7u3LWnlAkdDFMuQjiD/zMKMkJdvxwAJ+x8qnNuuII05OyE/ANYE1F2KweMAPN0ciK Vjzz1NhUoYMkIRgiHGfizTk9x/cqoZq9BuTIPBqieRL++eLnBOwd5+A6e5SNVOJlp+lu zgZPlkbZIGlML3E+KQ3exUgXOTQ0VZ/Suk57Q=
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Sender: owner-mutt-users@xxxxxxxx
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_ES@euro
LANGUAGE=es_ES:es:en_GB:en
LC_CTYPE="es_ES@euro"
LC_NUMERIC="es_ES@euro"
LC_TIME="es_ES@euro"
LC_COLLATE="es_ES@euro"
LC_MONETARY="es_ES@euro"
LC_MESSAGES="es_ES@euro"
LC_PAPER="es_ES@euro"
LC_NAME="es_ES@euro"
LC_ADDRESS="es_ES@euro"
LC_TELEPHONE="es_ES@euro"
LC_MEASUREMENT="es_ES@euro"
LC_IDENTIFICATION="es_ES@euro"
LC_ALL=es_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_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-mutt@xxxxxxxxxxxxxx> 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_ES@euro
>>es_ES.iso88591
>>es_ES.iso885915@euro
>>es_ES.utf8
>
>>I think that es_ES@euro is the same that es_ES.ISO8859-15 because
>>when I choose wich locales I want this is displayed like: es_ES@euro
>>ISO-8859-15
>
> Unfortunately, I'm pretty sure that's incorrect. Locale names use the
> following syntax:
>
> language[_territory][.codeset][@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_ES@euro *and*
> es_ES.iso885915@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_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_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-----
>