Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Charset hiccups with HTML mails display
@ 2010-06-11 21:35 Tim Landscheidt
  2010-06-20 20:12 ` Tim Landscheidt
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Landscheidt @ 2010-06-11 21:35 UTC (permalink / raw)
  To: info-gnus-english

Hi,

I have been having for quite some time the problem of HTML
mails not properly displaying due to charset hiccups (Gnus
v5.13/GNU Emacs 23.1.1 here) that I need to tackle now.

  The issue is easily explained: A message consisting of
(only relevant header lines):

| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| Content-type: text/html; charset="iso-8859-1"

| <html>
|   <body>
|     <p>Test: &Auml;</p>
|   </body>
| </html>

should display "Test: Ä" in some way, but instead it says:
"Test: \303\204" (i. e. "Ä" encoded in UTF-8).

  mm-text-html-renderer is lynx,
mm-text-html-renderer-alist's lynx entry is (lynx
mm-inline-render-with-stdin nil "lynx" "-dump" "-force_html"
"-stdin" "-nolist"). If I prepend the latter argument list
with "-display_charset=iso-8859-1", instead of "\303\204"
"\304" is rendered (i. e. "Ä" encoded in ISO 8859-1).

  So the problem seems to be that Gnus doesn't accept Lynx's
output as UTF-8 but as some raw binary. I use shell-command/
shell-command-on-region on a daily basis, so the source of
the problem does not lie with Emacs in this case.

  Any ideas?

TIA,
Tim

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

* Re: Charset hiccups with HTML mails display
  2010-06-11 21:35 Charset hiccups with HTML mails display Tim Landscheidt
@ 2010-06-20 20:12 ` Tim Landscheidt
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Landscheidt @ 2010-06-20 20:12 UTC (permalink / raw)
  To: info-gnus-english

I wrote:

> I have been having for quite some time the problem of HTML
> mails not properly displaying due to charset hiccups (Gnus
> v5.13/GNU Emacs 23.1.1 here) that I need to tackle now.

>   The issue is easily explained: A message consisting of
> (only relevant header lines):

> | MIME-Version: 1.0
> | Content-Transfer-Encoding: 8bit
> | Content-type: text/html; charset="iso-8859-1"

> | <html>
> |   <body>
> |     <p>Test: &Auml;</p>
> |   </body>
> | </html>

> should display "Test: Ä" in some way, but instead it says:
> "Test: \303\204" (i. e. "Ä" encoded in UTF-8).

>   mm-text-html-renderer is lynx,
> mm-text-html-renderer-alist's lynx entry is (lynx
> mm-inline-render-with-stdin nil "lynx" "-dump" "-force_html"
> "-stdin" "-nolist"). If I prepend the latter argument list
> with "-display_charset=iso-8859-1", instead of "\303\204"
> "\304" is rendered (i. e. "Ä" encoded in ISO 8859-1).

>   So the problem seems to be that Gnus doesn't accept Lynx's
> output as UTF-8 but as some raw binary. I use shell-command/
> shell-command-on-region on a daily basis, so the source of
> the problem does not lie with Emacs in this case.

>   Any ideas?

Isn't there even a single kind soul out there who could tem-
porarily set his mm-text-html-renderer to lynx, view an HTML
mail and confirm my report or not? :-)

Tim

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

end of thread, other threads:[~2010-06-20 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-11 21:35 Charset hiccups with HTML mails display Tim Landscheidt
2010-06-20 20:12 ` Tim Landscheidt

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).