emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting UTF-8 strings to hex in Emacs


From: 白い熊
Subject: Converting UTF-8 strings to hex in Emacs
Date: Wed, 03 Mar 2010 17:25:01 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux)

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?
-- 
C уважением / 宜しく御願い致します / Best regards / S pozdravem / Z poważaniem / Mit 
freundlichen Grüßen

白い熊





reply via email to

[Prev in Thread] Current Thread [Next in Thread]