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

Re: Charset issue?



 On Saturday, May 12, 2007 at 14:37:14 +1200, Roland Hill wrote:

> $ echo $LANG
> en_NZ.UTF-8

    OK: For now, keep this one. And don't set $charset in muttrc: It is
supposed to take the good value automagically. Type ":set ?charset"
directly in Mutt to check it says charset="utf-8". Then take a look at
the garbled messages.


> LANGUAGE=en_NZ:en

    That is a valid value: A colon-separated list of locales in prefered
order for messages. A sort-of super-LC_MESSAGES. However your setting is
not very interesting, so I'd tend to advice to unset it, and wipe it
from whatever startup file(s) do set it. But you can do as you like.


>>| $ printf "L1: won\0264t \0250reply\0250\nU8: won\0302\0264t 
>>\0302\0250reply\0302\0250\n"
> A picture speaks a thousand words?

    Et merde! Sorry Roland, my mistake: I managed to give you a syntax
that your printf didn't like. Please excuse me, and run this instead:

| $ printf "L1: won\xB4t \xA8reply\xA8\nU8: won\xC2\xB4t 
\xC2\xA8reply\xC2\xA8\n"


 On Saturday, May 12, 2007 at 16:44:17 +1200, Roland Hill wrote:

> Mostly Eterm when at home and KDE's konsole (not gnome). This has
> settings of: $TERM = linux

    Setting TERM=linux for anything other than the Linux console is...


> I also use Putty on MS boxes. Not at one now but I have the $TERM set
> as 'linux' from memory.

    ...an heresy. Modern PuTTY supports 256 colors, the best setting is
TERM=putty-256color. More precisely, set this value to the "terminal
type string" in PuTTY config, so it gets auto-exported. You'll also need
there to set "translation" to UTF-8, to match your locale's charset.


 On Friday, May 11, 2007 at 23:04:34 -0600, Kyle Wheeler wrote:

> for konsole, I've been told that it works best with TERM=xterm-color

    Beware: I'm not sure of the following. I've been told that the most
recent Konsoles mimic modern Xterms very closely: 256 colors, extended
key combinations, and more. In the absence of an up-to-date dedicated
terminfo entry, it may seem that TERM=xterm-256color could work well,
especially for Vim.


Bye!    Alain.
-- 
Mutt muttrc tip to send mails in best adapted first necessary and sufficient
charset (version for East Europe Latin-2/CP-852/CP-1250 terminal users):
set 
send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1250:utf-8"