On 17.11.10,11:05, Christian Ebert wrote:
> * Jostein Berntsen on Wednesday, November 17, 2010 at 09:43:46 +0100
> > Mutt displays the Norwegian characters correctly in all my emails, 
> > except some emails from Exchange with these headers:
> > 
> > Content-Type: text/html; charset="iso-8859-1" 
> > 
> > These emails have just an empty space instead of the Norwegian 
> > characters.  Other mails with charset "Windows-1252" are displayed 
> > correctly.
> 
> Not too much experience with html mails, but I a few guesses:
> 
> You are viewing these with autoview?
> 
> > I have set my locale to no_NO.utf8 and have these settings in .muttrc:
> > 
> > set charset="UTF-8//TRANSLIT"
> > iconv-hook   ks_c_5601-1987    KS_C_5601-1987
> > charset-hook ks_c_5601-1987    euc-kr
> > iconv-hook iso-8859-1     Windows-1252
> > charset-hook iso-8859-1     Windows-1252
> > charset-hook ^us-ascii$   ISO-8859-1
> 
> I don't see how the TRANSLIT makes sense with utf, and I don't
> see the use of those iconv-hooks either.
> 
> I have just the following:
> 
> charset-hook ^unknown-8bit$   cp1252
> charset-hook ^x-unknown$      cp1252
> charset-hook ^none$           cp1252
> charset-hook ^x-user-defined$ cp1252
> charset-hook ^us-ascii$       cp1252
> charset-hook ^iso-8859-1$     cp1252
> charset-hook ^iso-8859-8-i$   iso-8859-8
> charset-hook ^gb2312$         gb18030
> charset-hook ^ks_c_5601-1987$ euc-kr
> 
> > I use mutt version 1.5.20. Is there any other settings that can be done 
> > so that these mails are displayed correctly?
> 
> With w3m I would try the following mailcap entries (note the 2nd
> one):
> 
> text/html; w3m -F -dump -I cp1252 -O UTF-8 -T text/html; test=test %{charset} 
> = us-ascii; copiousoutput
> text/html; w3m -F -dump -I cp1252 -O UTF-8 -T text/html; test=test %{charset} 
> = iso-8859-1; copiousoutput
> text/html; w3m -F -dump -I %{charset} -O UTF-8 -T text/html; copiousoutput
> 

Thanks, this worked great. The mailcap entries did the trick. 

$
Jostein

Reply via email to