Joe Corneli wrote:
> The question is: how to make sense of the output from
>
>  lynx -dump http://emacs-w3m.namazu.org/ml/msg07861.html
>
> This looks harder than chinese utf translations, though I think that
> once I get the pattern down, it won't really be any harder (see
> http://lists.gnu.org/archive/html/help-gnu-emacs/2005-03/msg00689.html).
>
> But what is the pattern?

You have to pay attention to the HTTP headers sent by the server, in
particular:

Content-Type: text/html; charset=iso-2022-jp

According to the lynx man page, the -mime_header option "prints the MIME
header of a fetched document along with its source".  Alternatively, you
can call lynx twice, first with the -head option to get just the HTTP
headers and then with -dump to get the content.

You should also try to handle Content-Transfer-Encoding headers.

--
Kevin Rodgers


_______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to