From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: converting octal escape sequences to utf-8 and back Date: Sat, 28 May 2011 19:27:51 -0500 Message-ID: <19937.37639.583480.682350@gargle.gargle.HOWL> 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 1306637520 29222 80.91.229.12 (29 May 2011 02:52:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 May 2011 02:52:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 29 04:51:57 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 1QQW6e-0006la-To for ged-emacs-devel@m.gmane.org; Sun, 29 May 2011 04:51:57 +0200 Original-Received: from localhost ([::1]:35606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQW6e-00083F-Hi for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 22:51:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQTre-0000J7-EY for emacs-devel@gnu.org; Sat, 28 May 2011 20:28:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQTrd-0000aD-KY for emacs-devel@gnu.org; Sat, 28 May 2011 20:28:18 -0400 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:2880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQTrd-0000XZ-Bi for emacs-devel@gnu.org; Sat, 28 May 2011 20:28:17 -0400 Original-Received: from regnitz (unknown [202.20.0.151]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 3ED2421105 for ; Sun, 29 May 2011 02:28:09 +0200 (CEST) X-Mailer: VM 8.2 trial under 23.3.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 131.188.164.197 X-Mailman-Approved-At: Sat, 28 May 2011 22:51:53 -0400 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:139860 Archived-At: 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 program. So I need to convert these utf-8 characters back to their respective octal escape sequences. What is the proper way to achieve this? Thanks a lot, Roland