Re: Display of non-ascii chars

2002-08-01 Thread Erik Christiansen

On Wed, Jul 31, 2002 at 09:57:49AM -0400, Mark J. Reed wrote:

 If you use the vim editor for composing messages, then you can
 set up digraphs to enter non-ASCII characters; it also supports a
 completely general but more awkward input method where you can type
 control-V followed by the decimal character code of the character
 you want, or the letter 'u' followed by the hexadecimal Unicode code
 point.

   For some it is more natural to use the ^K (control-k) syntax:

   ^kaa = å   # Was ^ka in older vim, but aa is more natural.
   ^ko/ = ø
   ^kae = æ

  And if it's not Danish, but German:

   ^ka: = ä
   ^ko: = ö
   ^ku: = ü

   In vim, try:

   :h digraph
   :h digraphs

   and for a list of them:

   :digraphs

Viel Spaß!

Erik





Display of non-ascii chars

2002-07-31 Thread Erik van der Meulen

Dear all, I have some issue with the displaying of non-ascii chars in my
mail. I have to admit that I am not 100% sure that this is a mutt-issue
or more shell or terminal related. Sorry if it is off-topic, I have
tried all kinds of things to get this right.

If an incoming mail contains accents or other non-ascii things, they
seem to show up as '?' or even blanks within mutt. This is most
annoying.
For instance if I look at a 'From' line in a mail that displays
perfectly in Evolution mail (contains two different 'e' accents), it
shows:

From: =?iso-8859-1?Q?H=E9l=E8ne_Corthals?= [EMAIL PROTECTED]

in 'less' on the terminal, and the same line in 'mutt' is displayed as:

From: H?el?ne Corthals

Again, I have tried to change char-sets in mutt and other settings that
I thought might help, all to no avail. Any hints or suggestions are
indeed much appreciated!

--
  Erik van der Meulen [EMAIL PROTECTED]



Re: Display of non-ascii chars

2002-07-31 Thread Erik van der Meulen

On Wed, Jul 31, 2002 at 01:46:24PM +0200, Roman Neuhauser wrote:

 looks like you have $LANG set to C, POSIX, or something like that.
 what happens if you just cat(1) the message (i. e. view it w/o any
 intervening program)? i'd guess it won't come up right either.

Thanks a lot for your reply.
You are right. It comes up just like in 'less'

 roman@freepuppy ~ 865:1  echo $LANG 
 cs_CZ.ISO8859-2

Mine gives (as you had guessed) 'C'

 roman@freepuppy ~ 866:0  grep charset .mail/mutt/muttrc 
 set charset = iso-8859-2
 set send_charset = us-ascii:iso-8859-2:utf-8

I get just:

  charset=iso-8859-1

From this I deduce that my problem is in the $LANG.
Any suggestion on how and where to change that? I am on a Debian 2.2
box.

Thanks again!

--
  Erik van der Meulen [EMAIL PROTECTED]



Re: Display of non-ascii chars

2002-07-31 Thread Roman Neuhauser

 Date: Wed, 31 Jul 2002 13:32:49 +0200
 From: Erik van der Meulen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Display of non-ascii chars
 
 Dear all, I have some issue with the displaying of non-ascii chars in my
 mail. I have to admit that I am not 100% sure that this is a mutt-issue
 or more shell or terminal related. Sorry if it is off-topic, I have
 tried all kinds of things to get this right.

this is both mutt and terminal issue
 
 If an incoming mail contains accents or other non-ascii things, they
 seem to show up as '?' or even blanks within mutt. This is most
 annoying.
 For instance if I look at a 'From' line in a mail that displays
 perfectly in Evolution mail (contains two different 'e' accents), it
 shows:
 
 From: =?iso-8859-1?Q?H=E9l=E8ne_Corthals?= [EMAIL PROTECTED]

looks like you have $LANG set to C, POSIX, or something like that.
what happens if you just cat(1) the message (i. e. view it w/o any
intervening program)? i'd guess it won't come up right either.
 
 in 'less' on the terminal, and the same line in 'mutt' is displayed as:
 
 From: H?el?ne Corthals
 
 Again, I have tried to change char-sets in mutt and other settings that
 I thought might help, all to no avail. Any hints or suggestions are
 indeed much appreciated!

roman@freepuppy ~ 865:1  echo $LANG 
cs_CZ.ISO8859-2
roman@freepuppy ~ 866:0  grep charset .mail/mutt/muttrc   
set charset = iso-8859-2
set send_charset = us-ascii:iso-8859-2:utf-8

-- 
FreeBSD 4.6-STABLE
1:41PM up 21:17, 9 users, load averages: 0.00, 0.00, 0.00



Re: Display of non-ascii chars

2002-07-31 Thread Roman Neuhauser

 Date: Wed, 31 Jul 2002 13:58:48 +0200
 From: Erik van der Meulen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Display of non-ascii chars
 
 On Wed, Jul 31, 2002 at 01:46:24PM +0200, Roman Neuhauser wrote:
 
  looks like you have $LANG set to C, POSIX, or something like that.
  what happens if you just cat(1) the message (i. e. view it w/o any
  intervening program)? i'd guess it won't come up right either.
 
 Thanks a lot for your reply.
 You are right. It comes up just like in 'less'

ok, so it's your terminal (or rather, environment) that's not set up
as you need.
 
  roman@freepuppy ~ 865:1  echo $LANG 
  cs_CZ.ISO8859-2
 
 Mine gives (as you had guessed) 'C'

 From this I deduce that my problem is in the $LANG.

yes

 Any suggestion on how and where to change that? I am on a Debian 2.2
 box.

you can fix it by
% setenv LANG en_US.ISO8859-1
or
% export LANG=en_US.ISO8859-1
depending on the type of shell you use.

permanent fix lies in your shell's start up files. export $LANG with
appropriate value from there.

-- 
FreeBSD 4.6-STABLE
2:12PM up 21:48, 9 users, load averages: 0.03, 0.05, 0.01



Re: Display of non-ascii chars

2002-07-31 Thread Erik van der Meulen

On Wed, Jul 31, 2002 at 02:16:09PM +0200, Roman Neuhauser wrote:

 % setenv LANG en_US.ISO8859-1
 or
 % export LANG=en_US.ISO8859-1
 depending on the type of shell you use.

 permanent fix lies in your shell's start up files. export $LANG with
 appropriate value from there.

Thanks a mil! I have added this to my .bash_profile and it seems to work
just fine! (and since we are performing magic here anyway, you wouldn't
happen to know of a way to COMPOSE such characters, rather than just
reading them?)

Much obliged.

--
  Erik van der Meulen [EMAIL PROTECTED]




Re: Display of non-ascii chars

2002-07-31 Thread Mark J. Reed


 Thanks a mil! I have added this to my .bash_profile and it seems to work
 just fine! (and since we are performing magic here anyway, you wouldn't
 happen to know of a way to COMPOSE such characters, rather than just
 reading them?)
If you use the vim editor for composing messages, then you can
set up digraphs to enter non-ASCII characters; it also supports a
completely general but more awkward input method where you can type
control-V followed by the decimal character code of the character
you want, or the letter 'u' followed by the hexadecimal Unicode code
point.

Any more general solution for use outside of your editor depends even
more on the environment in which you are running mutt.  If you're
running it in an X terminal program on the console of the Unix
box, for instance, you can set up an XIM (X Input Manager) server,
or manually remap certain key combinations via the xmodmap program.

If you're connecting from a terminal program on a Windows box,
then you can usually install international virtual keyboard layouts and
switch between them with hotkeys or a system tray icon.
There's also the vim-like solution of holding down the Alt key and
typing a decimal character code on the numeric keypad (although
that only works for 8-bit values, not Unicode code points); and of
course you can always paste from the Character Map system accessory.

-- 
Mark REED| CNN Internet Technology
1 CNN Center Rm SW0831G  | [EMAIL PROTECTED]
Atlanta, GA 30348  USA   | +1 404 827 4754 
--
Steele's Plagiarism of Somebody's Philosophy:
Everybody should believe in something -- and I believe I'll have
another drink.