Re: mutt doesn't find correct charset

2001-11-14 Thread Michael Tatge

Andy Spiegl muttered:
 Since I upgraded to 1.3.20i I've got 2 problem with charsets.
 
 The first one is that if the charset isn't specified in the Content-Type of
 a mail, mutt seems to always use us-ascii, although I've set the config
 variable charset to iso-8859-1.  Is that the normal behaviour now?

As far as I can tell it has been since 1.0.

 If so, what do I have to do to make it use iso-8859-1?
 Ah, I just noticed: if I completely delete the Content-Type: line
 the iso characters show up correctly again!  But just:
  Content-Type: text/plain
 doesn't work.  And many broken mailer send mails like that. :-(

Yeah, I have this in my muttrc to fix that.

charset-hook  iso-8859-1  # fix stupid MUA output

 Many of my mails come from a friend who has K.d.Ö.R. in his real name.
 So the From-Line is like this:
  From: =?iso-8859-1?Q?K.d.=F6.R.?= [EMAIL PROTECTED]
 
 Mutt doesn't decode this line in the index, so that I see:
1 Nov 12 =?iso-8859-1?Q?K.  (   9) subject
 instead of
1 Nov 12 K.d.Ö.R.   (   9) subject

 In the pager it's shown correctly though:
  Date: Mon, 12 Nov 2001 20:43:52 -0500
  From: K.d.ö.R. [EMAIL PROTECTED]
  To: Andy Spiegl [EMAIL PROTECTED]
  Subject: äöüß

If the pager shows the correct iso chars then I guess that there is
something mixed up in the headers of that mail.

 BTW, I've set:
  set charset=iso-8859-1
 and:
  export LANG=de_DE
  export LANGUAGE=de_DE
  export LC_ALL=de_DE

LC_ALL=en_US
LANG=en_US

set charset=iso-8859-1# default enconding

Works like charm. :)

HTH,

Michael
-- 

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



mutt doesn't find correct charset

2001-11-12 Thread Andy Spiegl

Hi!

Since I upgraded to 1.3.20i I've got 2 problem with charsets.

The first one is that if the charset isn't specified in the Content-Type of
a mail, mutt seems to always use us-ascii, although I've set the config
variable charset to iso-8859-1.  Is that the normal behaviour now?
If so, what do I have to do to make it use iso-8859-1?

Ah, I just noticed: if I completely delete the Content-Type: line
the iso characters show up correctly again!  But just:
 Content-Type: text/plain
doesn't work.  And many broken mailer send mails like that. :-(


The second one is a minor problem, but still a bit annoying:
Many of my mails come from a friend who has K.d.Ö.R. in his real name.
So the From-Line is like this:
 From: =?iso-8859-1?Q?K.d.=F6.R.?= [EMAIL PROTECTED]

Mutt doesn't decode this line in the index, so that I see:
   1 Nov 12 =?iso-8859-1?Q?K.  (   9) subject
instead of
   1 Nov 12 K.d.Ö.R.   (   9) subject

In the pager it's shown correctly though:
 Date: Mon, 12 Nov 2001 20:43:52 -0500
 From: K.d.ö.R. [EMAIL PROTECTED]
 To: Andy Spiegl [EMAIL PROTECTED]
 Subject: äöüß
 User-Agent: Mutt/1.3.23i

Is there a fix for that?

BTW, I've set:
 set index_format=%4C %Z %{%b %d} %-18.18F %?M?%5M*(%4l)? %s
 set charset=iso-8859-1
and:
 export LANG=de_DE
 export LANGUAGE=de_DE
 export LC_ALL=de_DE

Thanks a lot for any hint!
 Andy.

-- 
 Dr. Andy Spiegl, Radio Marañón, Jaén, Perú
 E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
 URL: http://spiegl.de, http://radiomaranon.org.pe
 PGP/GPG: see headers
  o  _ _ _
  --- __o   __o  /\_   _ \\o  (_)\__/o  (_)  -o)
  - _`\,__`\,__(_) (_)/_\_| \   _|/' \/   /\\
   (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o__\_v
 
 Hain't we got all the fools in town on our side?  And hain't that a big
 enough majority in any town?  - Mark Twain, Huckleberry Finn