From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: converting octal escape sequences to utf-8 and back Date: Sun, 29 May 2011 06:00:24 +0300 Message-ID: <8362oub48n.fsf@gnu.org> References: <19937.37639.583480.682350@gargle.gargle.HOWL> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1306638043 31184 80.91.229.12 (29 May 2011 03:00:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 May 2011 03:00:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Roland Winkler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 29 05:00:39 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QQWEz-0000AZ-9y for ged-emacs-devel@m.gmane.org; Sun, 29 May 2011 05:00:33 +0200 Original-Received: from localhost ([::1]:44116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQWEz-0000g9-0g for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 23:00:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQWEx-0000g4-Hn for emacs-devel@gnu.org; Sat, 28 May 2011 23:00:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQWEw-0008EJ-Q6 for emacs-devel@gnu.org; Sat, 28 May 2011 23:00:31 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:57154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQWEw-0008EF-Ik; Sat, 28 May 2011 23:00:30 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LLX00B00SCBZD00@a-mtaout20.012.net.il>; Sun, 29 May 2011 06:00:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.221.158]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LLX00B37SCH9QE0@a-mtaout20.012.net.il>; Sun, 29 May 2011 06:00:18 +0300 (IDT) In-reply-to: <19937.37639.583480.682350@gargle.gargle.HOWL> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139863 Archived-At: > Date: Sat, 28 May 2011 19:27:51 -0500 > From: "Roland Winkler" >=20 > I am trying to use emacs to interface with a program that treats > utf-8 characters in its input and output as octal escape sequences. > So the program's output contains ascii strings like "\302\247", > which I want to display within Emacs as "=A7". Likewise, I want to > feed text containing utf-8 characters such as "=A7" into this progr= am. > So I need to convert these utf-8 characters back to their respectiv= e > octal escape sequences. What is the proper way to achieve this? A new coding-system?