help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Convert the hexadecimal character code to the corresponding Unicode


From: Emanuel Berg
Subject: Re: Convert the hexadecimal character code to the corresponding Unicode value.
Date: Sun, 03 Oct 2021 09:44:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>>> But sorry for my inaccurate description. I mean the
>>>> "\uxxxx" or "\U00xxxxxx" counterpart of the code point
>>>> represented by decimal/hexadecimal/octal formats.
>>>
>>> ... an example?
>>
>> a: codepoint 97, #x61 <--> \u0061
>>
>> ♥: BLACK HEART SUIT codepoint 9829, #x2665  <-->  \u2665
>>
>> 😸: GRINNING CAT FACE WITH SMILING EYES codepoint 128568, #x1f638
>> <--> \U0001f638
>
> I don't know if there is Elisp for that ATM but if there isn't
> it looks like a simple substitution problem?

Does `describe-char' do that?

If so, check it out (it is in descr-text.el) and see how it is
done first hand ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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