Gnus development mailing list
 help / color / mirror / Atom feed
* Now I'm sure it's a bug! please help me
@ 2003-03-10 14:45 Steven Woody
  2003-03-10 22:20 ` Kai Großjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Woody @ 2003-03-10 14:45 UTC (permalink / raw)



I'm currently runing Emacs 21.2.1 + Oort gnus 0.16.  After some steps
of setting, now I can read/write Chinese (plain text email, news
group).  However, if I received a mail message in HTML+Chinese, gnus
will not properly represent it to me.

I'v tried almost all the text-html-renderer, include w3m, w3, lynx
2.8.3 and lynx 2.8.4.  Now I post the test result here, just for your
information, and most important, hope some one can help me to resolv
the problem.

This is the oringial email message (in raw data) for test:

---- cut begin ---------
...

From: a@b.c
To: a@b.c
Subject: =?gb2312?B?SFRNTCvW0M7E?=
..
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0038_01C2E74E.8E9D6420"
...
...
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

This is a multi-part message in MIME format.

------=_NextPart_000_0038_01C2E74E.8E9D6420
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: base64

RW5nbGlzaA0K1tDOxA==

------=_NextPart_000_0038_01C2E74E.8E9D6420
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu
dD0idGV4dC9odG1sOyBjaGFyc2V0PWdiMjMxMiI+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNi4w
MC4yODAwLjExNDEiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8
Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5FbmdsaXNoPC9GT05UPjwv
RElWPg0KPERJVj48Rk9OVCBzaXplPTI+1tDOxDwvRk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K

------=_NextPart_000_0038_01C2E74E.8E9D6420--

---------cut end ----------------------------------------------------


Output of lynx 2.8.4 as renderer
================================
   English
   ????

Note: lynx can display Chinese web page in the command line w/o any
problem. But when it works as a Gnus renderer, it display the two
Chinese characters as four '?'s.  I dont know Lisp, but after check
the code, I found Gnus call lynx with "-stdin -dump -fource_html", I
tried this on the command line and found no problem, so I dont
understand why lynx change it's behavior in Gnus with the same call?
Consequently I think the data Gnus feed to Lynx may be a problem, but
why plain text base64 message can display properly, this seems imply
base64 decoding is not the source of the problem, right? Who come on
to answer the question?

Output of w3m as renderer
=========================
English
^[$(AVPND^[(B

Note: w3m can display Chinese web page in the command line w/o any
problem.

Output w3 as renderer
==============================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>English</FONT></DIV>
<DIV><FONT size=2>中文</FONT></DIV></BODY></HTML>

Note: As many people said, w3 is very unforgivening, most of my html
mail can not be process by it, so it output a html source file. But,
there is a very strange thing that the Chinese charactars were
*correctly* displayed!


Output of Lynx 2.8.3 as renderer
=================================
        ...
        Invalid Options '-stdin'
        ...

Note: this caused by that the lynx 2.8.3 dont has a '-stdin' option,
so I remove it and install the newer 2.8.4.


-- 
Put your Nose to the Grindstone!
		-- Amalgamated Plastic Surgeons and Toolmakers, Ltd.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Now I'm sure it's a bug! please help me
  2003-03-10 14:45 Now I'm sure it's a bug! please help me Steven Woody
@ 2003-03-10 22:20 ` Kai Großjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2003-03-10 22:20 UTC (permalink / raw)


Steven Woody <steven@steven4u.net> writes:

> Output of w3m as renderer
> =========================
> English
> ^[$(AVPND^[(B
>
> Note: w3m can display Chinese web page in the command line w/o any
> problem.

This is looking somewhat promising, I think.  Looks like iso-2022,
doesn't it?  So you'd just have to tell Emacs that the output of w3m
will be in that format.  Hm.

Did you use w3mmee?  Did you set w3m-type to the right value?

-- 
A preposition is not a good thing to end a sentence with.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-10 22:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-10 14:45 Now I'm sure it's a bug! please help me Steven Woody
2003-03-10 22:20 ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).