From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?55m944GE54aK?= Newsgroups: gmane.emacs.devel Subject: Converting UTF-8 strings to hex in Emacs Date: Wed, 03 Mar 2010 17:25:01 +0300 Message-ID: <87vdddxz2a.fsf@porzhiz.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267626339 5647 80.91.229.12 (3 Mar 2010 14:25:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Mar 2010 14:25:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 03 15:25:34 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NmpW1-0004UA-W7 for ged-emacs-devel@m.gmane.org; Wed, 03 Mar 2010 15:25:34 +0100 Original-Received: from localhost ([127.0.0.1]:45965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmpW1-0001yn-AF for ged-emacs-devel@m.gmane.org; Wed, 03 Mar 2010 09:25:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmpVc-0001ui-Mx for emacs-devel@gnu.org; Wed, 03 Mar 2010 09:25:08 -0500 Original-Received: from [140.186.70.92] (port=54675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmpVb-0001uK-Pa for emacs-devel@gnu.org; Wed, 03 Mar 2010 09:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmpVb-0002re-AM for emacs-devel@gnu.org; Wed, 03 Mar 2010 09:25:07 -0500 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:43691) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmpVb-0002rN-6i for emacs-devel@gnu.org; Wed, 03 Mar 2010 09:25:07 -0500 Original-Received: from [85.90.127.117] (helo=mbp52) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1NmpVY-0004SF-LI for emacs-devel@gnu.org; Wed, 03 Mar 2010 09:25:04 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121602 Archived-At: Hi: I'm looking for the Emacs way to convert UTF-8 strings to Hex, so they can be sent as hex codes to modem AT commands. For interactive mode hexl-mode lets you view strings and see their representation, however I need a way to do this in elisp, i.e. pass the UTF-8 string and receive back its hex representation. There's uni2ascii which does this, and I can call it via a call-process, however would like to do it in elisp. Anyone know how? --=20 C =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC / =E5=AE=9C=E3=81= =97=E3=81=8F=E5=BE=A1=E9=A1=98=E3=81=84=E8=87=B4=E3=81=97=E3=81=BE=E3=81=99= / Best regards / S pozdravem / Z powa=C5=BCaniem / Mit freundlichen Gr=C3= =BC=C3=9Fen =E7=99=BD=E3=81=84=E7=86=8A