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: Hongyi Zhao
Subject: Re: Convert the hexadecimal character code to the corresponding Unicode value.
Date: Sat, 2 Oct 2021 09:28:08 +0800

On Sat, Oct 2, 2021 at 1:59 AM Emanuel Berg via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> > See this project which can do base conversion up to 36
> > easily in Emacs:
> >
> > https://github.com/AdamNiederer/0xc
>
> Okay, well, yes of course, but it is used sometimes in the
> shell - not every day but sometimes - in Emacs I don't think
> I ever used it, but if I did I'd do it from the shell after
> M-x shell RET.
>
> In the shell however getting Emacs isn't that easy.
>
> Also, since this solution is so simple and general, and that
> is all based on the shell tool bc(1), it is more natural to do
> that with shell programming.
>
> > 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

HZ



reply via email to

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