unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: making "$BEZ20(B $B2mL-(B" say "TSUCHIYA Masatoshi" in Japanese
Date: Wed, 06 Apr 2005 09:45:10 -0600	[thread overview]
Message-ID: <d31029$8e3$1@sea.gmane.org> (raw)
In-Reply-To: <E1DJ3s1-00028x-00@lab45.ma.utexas.edu>

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

  reply	other threads:[~2005-04-06 15:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  6:18 making "$BEZ20(B $B2mL-(B" say "TSUCHIYA Masatoshi" in Japanese Joe Corneli
2005-04-06 15:45 ` Kevin Rodgers [this message]
     [not found] ` <mailman.452.1112800777.2895.help-gnu-emacs@gnu.org>
2005-04-07  0:20   ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d31029$8e3$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).