Re: wrong charset
- To: mutt-users@xxxxxxxx
- Subject: Re: wrong charset
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 8 May 2009 17:47:39 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=YBQgzDDgXW7qypx1vLlmybAS7ks=; b=B4TK 7xR3LysFWsfAregLYjHGlZTWxqLhXK+K/tr09qY/O29LtXe/t364q0iGjZ/qvcfr VHdtjAeMK6HtaFw1TsWpjnGm4rhiImroh3WWLkC80mpDf8iQlMMLBsRV/eSqPFHf HLEaBKWO5bgnFyPWrFJ9H/pu+JrbpkzljyF0kfE=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=He0yQAH/XpaC8MVT9KXRCu+DTyF//yQlqlK5gcJdhqP48yi9Q7b4xHRkzrXztWC4DJDBfrom/x1UxoUJVFItEYO0xeuAh5qSN1p7AHptlCefPTxxPy5bnbAuJSSYRNfijFBy9ScNpa2G+AbN4Diqe8OQfraZsoT0OQsn4ohIC3Q=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090508210826.GB3655@xxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090504202345.GU2575@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20090508004000.GA21269@xxxxxxx> <20090508042450.GA95541@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20090508210826.GB3655@xxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-29)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Friday, May 8 at 06:08 PM, quoth Luis A. Florit:
>>> But I have three charsets:
>>>
>>> $charset=//TRANSLIT
>>> ?charset=utf-8
>>
>> What? That doesn't make any sense. Are those two lines actually in
>> your muttrc?
>
> The only thing in my .muttrc is 'set charset=//TRANSLIT'.
Try removing that from your muttrc entirely.
> But no matter how I change that, the result is always utf-8.
Hmmmm. That suggests that something somewhere else is changing it. Is
there a systemwide muttrc that's setting the $charset maybe? If you
tell mutt to use a null muttrc (e.g. `mutt -F /dev/null`) does it
still say that $charset is utf-8?
> When I do ':set charset' I get 'charset="//TRANSLIT"' (as expected,
> although in this case it means UTF-8 despite of the fact that my
> xterm is ISO-8859-1).
What makes you think it means utf-8?
> If I change to iso-8859-1, I get accented characters as \123.
That's because your $charset doesn't match your locale.
In any case, a value of iso-8859-1//TRANSLIT should remedy that.
> I have always used as locale 'LANG=en_US' in a ISO-8859-1 rxvt
> console, and 'charset=\\TRANSLIT' or iso-8859-1 in muttrc, and
> everything worked fine. So I don't think this has to do with
> locales. It seems that mutt does not understand the osso-xterm...?
The terminal shouldn't matter in this case.
Okay, before we get too twisted up here, first, let's make sure your
locale setup is correct. Since perl is usually sensitive to proper
locale settings, try doing this:
perl -e ""
That SHOULD do nothing at all. If it complains, then your locale
settings are invalid. To prove that it will complain if your locale is
invalid, try this:
env LC_ALL=nocharset perl -e ""
That *should* generate a big ugly warning.
But, if perl is happy and mutt with a null config file thinks $charset
should be utf-8, then your pt_BR locale is set up to only work with
utf-8.
>> 1. When you run mutt, it reports that the charset it thinks is
>> appropriate is utf-8
>
> Yes, if I use 'set charset=//TRANSLIT'
So... don't do that.
>> 2. Nothing you seem to do can convince mutt to avoid utf-8
>
> No, now it accepts 'set charset=iso-8859-1', but still displays
> accented characters as \123.
Right. Because the $charset doesn't match the locale environment
settings (i.e. what your computer thinks the charset should be based
on the LANG and/or LC_CTYPE variables isn't iso-8859-1 for some
reason).
Hopefully, we're making progress.
~Kyle
- --
The next best thing to solving a problem is finding some humor in it.
-- Frank A. Clark
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iQIcBAEBCAAGBQJKBLZ/AAoJECuveozR/AWe9JoP/jD/y4zd6vL+Gh9qLvl2UXr0
dLeQ8MkUJgiTC5CSD8w1vcsto6yjMu4u1cfFDi0EnGwm5WjY66wYi1MsMAGC3clV
z75a4CGRD6IqI0RE04HhEeUFbfwIefVDowciDteoQ7/3wJbL6H6WIJYxhdvU05TE
rm1zYhdMvJwFcS1QWrpoYNbFXlkHgCIZcK8EHQ/InMkIiAOFt+huEpj9B+rITof1
wt0AfS6CkynRk8g9JndNX/c/eAobjSrEyZqoeetmHlLrgmiX+Kr+4Zgzzc2Pe/J+
qnJojEJBl1jNK9ZCqxlVJKdtUTn+xeNFma9YOQBa13oMZXWeQbcPVAVbfZQ9efxQ
qG9qQ2Ae2bSD+gCOc89YbLSbdGWQ3APaAQHNSlJv8+U3OoFgJ/Gbed+0P56CJ0kv
0RM3MoWS4rQ15uNOmxFQ2pbnXxVE+QmdG66uiKuuCLPaSBpAgjM4G9QC/Ta5LaPy
Dgjq6e1pmOex7A9HezCmY57GL3ZqTLleNP+o1yeBXxp7yJ+rbahCLez2xJDiBkgh
j7C68LfImDscpGjWP5aG4lWiF40EswdSqQthncNjx5/Jd9DJ/P8lsWlD5jOcoBPf
XvHyLC66oNX+pRKxS3LpS6clh3Jn9zj7ucagJIdAlECyv8khIcABeuNkWVHIgW/I
ceW7jQu3txjZNUcrMXZp
=ntT5
-----END PGP SIGNATURE-----