w3m can't show html mail with charset: gb2312
- To: mutt <mutt-users@xxxxxxxx>
- Subject: w3m can't show html mail with charset: gb2312
- From: phyrster@xxxxxxxxx
- Date: Tue, 19 Jul 2005 22:05:29 +0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=bFZ3orYu9tawiHXuqOtHnTCd65Y5pCV2c7cd4Irnh2M2QaoE+VZA/n9bqnHBBoFcYopuCEOrc4NhU71mR6wRttC6SMu2yNdU8PdAnSA8SBWIBS2XkrS7JBhrjF33aBoSnJWkUGynLzyIMMPtz8IWe1G27FGsvJOlEJ5VWIE0SCk=
- List-unsubscribe: <mailto:mutt-users-request@mutt.org?body=unsubscribe>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.9i
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.
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