<<< Date Index >>>     <<< Thread Index >>>

Re: Problems with iso-8859-1



On Friday, November  4 at 08:59 AM, quoth Philippe Berini:
* Doug Carter <doug@xxxxxxxxxxxxx> [Thu, Nov 03, 2005 at 05:07:14PM -0600]:

That turned out to be the case.  I got a suggestion from Kyle
Wheeler to add:

  charset-hook '^iso-8859-1$' cp1252

to my .muttrc and this did indeed solve the problem.

Here the problem has not been solved, it has been transformed:
without the charset-hook, the "'" are displayed as "\222", and with the
charset-hook, they appear as "?". This is less annoying for reading, but
not completely satisfactory.

Mutt turns characters into question marks if it knows that it's a correct character from the encoded charset but cannot display that character on your terminal. Those are not simply apostrophes (') that have been miscoded, but are curly-quotes (’). You have two possible solutions:

1. Get a better terminal. If you're using xterm, chances are you probably have "uxterm" (it's a shell-script wrapper around xterm) installed, which turns on xterm's utf-8 features.

2. Tell mutt to "fake it". Add the following to your muttrc:

   set charset="us-ascii//TRANSLIT"

That setting tells mutt to transform some undisplayable characters to character that are similar to what the character looks like. That means, for example, enyays (ñ) become n's, umlaut's (ü) become u's, and curly-quotes (’) become apostrophes. This is an unreliable, imperfect technique, but in cases where you absolutely can't use a better terminal, it's better than nothing.

~Kyle
--
In wine there is wisdom, in beer there is strength, in water there is bacteria.
                                                      -- German proverb

Attachment: pgpryNfLhjgrB.pgp
Description: PGP signature