From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.help Subject: Re: Convert UTF-8 string to hex Date: Mon, 1 Mar 2010 08:33:58 -0500 Message-ID: <20100301133358.GA17730@srevilak.net> References: <20100228220341.M79078@porzhiz.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" X-Trace: dough.gmane.org 1267450497 14142 80.91.229.12 (1 Mar 2010 13:34:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 13:34:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 01 14:34:54 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Nm5ls-0004h8-Gy for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 14:34:52 +0100 Original-Received: from localhost ([127.0.0.1]:34065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm5lp-0001xJ-Bl for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 08:34:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm5lG-0001uW-Le for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:34:14 -0500 Original-Received: from [140.186.70.92] (port=58336 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm5lB-0001nV-Tk for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:34:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm5lA-0000dX-SY for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:34:09 -0500 Original-Received: from mail2.sea5.speakeasy.net ([69.17.117.4]:39294) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm5lA-0000dI-IL for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:34:08 -0500 Original-Received: (qmail 6729 invoked from network); 1 Mar 2010 13:34:04 -0000 Original-Received: from pool-71-184-105-33.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[71.184.105.33]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 1 Mar 2010 13:34:04 -0000 Content-Disposition: inline In-Reply-To: <20100228220341.M79078@porzhiz.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:72267 Archived-At: --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >From: " ??? " >How do I convert an arbitrary UTF-8 string to hex in GNU Emacs? > >I'm looking for the Emacs equivalent of `uni2ascii -p' basically, can't >figure it out. I'm not familiar with uni2ascii, and I don't have it installed on any of my systems. If you're looking for a hex representation of a string, you might try M-x hexl-mode. hexl-mode shows a hex representation of the current buffer. If your buffer contains a utf-8 string, then you'll see a hex representation of that string. Steve --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAkuLwkYACgkQX7YJI4BuyDRFhACggvgwm43fo8XAN5pT6ohLdvxW 2J8AoO4QzfzDRnAhAcU81OIlKry8/1/O =hGXV -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--