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

Re: w3m can't show html mail with charset: gb2312



On Tue, Jul 19, 2005 at 10:05:29PM +0800, phyrster@xxxxxxxxx wrote:
> Hi, 
> 
> I am using mutt 1.5.9i in a debian sarge system. 
> My locale: is en_US.UTF-8. 
> 
> When I receive html messages with charset:gb2312, the body of the message can
> not be correctly displayed. All chinese words appear garbled. The message
> subject and English words, though, are shown correctly. 

If there's nothing concerned with privacy, can you show us these lines in the 
message header or in the multipart's header (original text data)? 

==================
Subject:, 
and: 
Content-Type ... charset= ...
==================

Are the characters in the subject line plain or encoded? 

Also, you'd better make sure that if the contents are really encoded as gb2312 
as declared in the header? Because some mail clients, especially some foolish 
webmail systems don't make sure that the really used code system is in accord 
with what declared in the message header. You'd better check it manually.

> 
> Here is my configuration of .mailcap: 
> 
> text/html; w3m -T text/html -dump %s; copiousoutput
> 
> I also tried this line: 
> 
> text/html; w3m -T text/html -O utf-8 -dump %s; copiousoutput
> 
> Still no avail. 
> 
> Then I turned to lynx and added this line to mailcap:
> 
> text/html; lynx --dump %s; nametemplate=%s.html; copiousoutput
> 
> This time the messages are not garbled but turned into something like: 
> 
> \234\341\5\233
> 
> Could any multi-lingual users tell me how to fix this?
> 
> 
> regards, 
> 
> 
> bxuef