Html conversion using Lynx has missing chars

Asked by blueman on 2014-01-17

My vm-8.2.0b setup uses "lynx" to read and convert MIME type text/html to display html messages inline.

This works fine when Emacs is run in a graphical frame. However, when I run Emacs in a terminal (e.g., under PuTTY), I get a lot of A-umlaut characters wherever there is a non-standard character (e.g., quotations, double space, etc.).

I was able to replicate this by passing the html part manually in a (non-Emacs) shell by piping the html onto lynx using:
   lynx -force_html -dump -stdin

I found that I could make the A-umlauts go away by adding the following switch to lynx:

Now the interesting thing is that the MIME part does have:
   Content-type: text/plain; charset=utf-8
   Content-transfer-encoding: quoted-printable

But clearly the charset is not detected and/or passed on to lynx by vm-mime.el

I imagine that the reason that the display works fine in a graphical frame but not in a terminal is that graphical Emacs has stronger character fu logic to decode non-standard ASCII characters.

So, my questions are:
1. Is this a bug?
2. If not, am I doing something wrong? And what should I be doing to make the display work right in a terminal
3. More generally, should the lynx command line referenced in vm-mime.el be set to a variable (or alternatively should the switches be defined in a variable) so that one can twiddle with the exact switches sent to lynx.

Question information

English Edit question
VM Edit question
No assignee Edit question
Last query:
Last reply:
blueman (blueman3) said : #1

I'm thinking the right thing to do would be for vm to pass the charset mentioned in Content-type to the lynx command line...

Launchpad Janitor (janitor) said : #2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

blueman (blueman3) said : #3

I still would appreciate an answer (is anyone following these questions anymore?)

Uday Reddy (reddyuday) said : #4

Yes, it looks like a bug. Please do vm-submit-bug-report with a sample message if possible.


Can you help with this problem?

Provide an answer of your own, or ask blueman for more information if necessary.

To post a message you must log in.