From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: making "$BEZ20(B $B2mL-(B" say "TSUCHIYA Masatoshi" in Japanese Date: Thu, 07 Apr 2005 09:20:15 +0900 Message-ID: <87k6nfe8u8.fsf@tc-1-100.kawasaki.gol.ne.jp> References: Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: sea.gmane.org 1112833457 14713 80.91.229.2 (7 Apr 2005 00:24:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2005 00:24:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 07 02:24:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJKo5-0007oo-Er for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2005 02:23:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJKNH-0001RZ-Jd for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Apr 2005 19:55:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJKLl-0000yd-Pb for help-gnu-emacs@gnu.org; Wed, 06 Apr 2005 19:54:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJKLl-0000xQ-FK for help-gnu-emacs@gnu.org; Wed, 06 Apr 2005 19:54:21 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DJKlO-0003pP-Mg; Wed, 06 Apr 2005 20:20:51 -0400 Original-Received: from localhost ([127.0.0.1]) by smtp02.dentaku.gol.com with esmtp (Dentaku) id 1DJKkq-0001zD-Jc; Thu, 07 Apr 2005 09:20:16 +0900 Original-Received: from yokohama2-61-203-152-223.ap.0038.net ([61.203.152.223] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1DJKkp-0001yo-QX; Thu, 07 Apr 2005 09:20:16 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 9CB422F68; Thu, 7 Apr 2005 09:20:15 +0900 (JST) Original-To: help-gnu-emacs@gnu.org System-Type: i686-pc-linux-gnu In-Reply-To: (Kevin Rodgers's message of "Wed, 06 Apr 2005 09:45:10 -0600") Original-Lines: 34 X-Virus-Scanned: by AMaViS GOL X-Abuse-Complaints: abuse@gol.com X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25444 Kevin Rodgers writes: > > The question is: how to make sense of the output from > > > > lynx -dump http://emacs-w3m.namazu.org/ml/msg07861.html > > You have to pay attention to the HTTP headers sent by the server, in > particular: > > Content-Type: text/html; charset=iso-2022-jp In addition, you have to make sure you actually get the raw text -- the "encoded" text in Joe's original post is missing crucial ESC (\033) characters[*], so there's no way to decode it correctly. I tried using "lynx -dump ..." myself, and it looks like it's lynx which is doing the stripping; the documentation seems to indicate that the "-raw" option will disable this stripping, but I couldn't get it to work(maybe this only works for terminal display, not with -dump?). -Miles [*] The correct binary text, with the escape characters replaced by the two-character sequence "^[" to make Gnus happy, is: "^[$BEZ20^[(B ^[$B2mL-^[(B" say "TSUCHIYA Masatoshi" Emacs can decode this using the above charset to: "土屋 雅稔" say "TSUCHIYA Masatoshi" -- If you can't beat them, arrange to have them beaten. [George Carlin]