From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Convert the hexadecimal character code to the corresponding Unicode value. Date: Sat, 2 Oct 2021 09:28:08 +0800 Message-ID: References: <87ilyhgh66.fsf@zoho.eu> <87a6jshbob.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37087"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 02 03:28:53 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWTpc-0009M5-G4 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 03:28:52 +0200 Original-Received: from localhost ([::1]:47630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWTpa-0001nq-VT for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 21:28:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWTp9-0001nS-9C for help-gnu-emacs@gnu.org; Fri, 01 Oct 2021 21:28:23 -0400 Original-Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]:37619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWTp6-00078N-HS for help-gnu-emacs@gnu.org; Fri, 01 Oct 2021 21:28:23 -0400 Original-Received: by mail-vs1-xe29.google.com with SMTP id f2so12482347vsj.4 for ; Fri, 01 Oct 2021 18:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=vb7XMqpsVaqcXVRS89UQF7mRcOmeDEItpljO0XIySQ8=; b=DEaZ9Zw9Kk15VJiXFapxrzOPob3k6f+ke9PnRlVbdBRVe/mh5ckd5Qku6VAwbg/MzT RTPiQu8sKydYidZq0n8NXRxYoiryMoH37lqhNYzFLokMu1RIzSPWkNisxsWMbPjhKLek i28mF3PNSDA+/Gn9MiNTejciCZsHZA1QuWXG6D4+QUuaGZgWxfQlweT1WhYOxNN3H6Gj 8bycaZZKuFW1dtWKObUUh6xhG7UMhdiiJWT9uKta09t8whHNzEu3OAvAOghnZaYy5+04 7357u3BBJSsE1Ce84wnbssYnm6I6iuTJhdFEbMVT/V6xGvTer5TjQLIsHEcQ0lXuVH48 rUng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=vb7XMqpsVaqcXVRS89UQF7mRcOmeDEItpljO0XIySQ8=; b=2oPsXdK45zHZ5FYtCqMqwT/OcsvLaiG6unp/tOqQeV017VMTDng8SJvVaVUS5/Jf+T 4YGbYw2jUjPiIzOmZT40mbTjzR8f/hwZHobn2p9L65R4n14dobZWwrZK2yZ7WCVTC/Kv wkryspcc1Q7QZ0sAsDBBgyf38t4XQdPPDTFLCw0anjmxbhWEIEKohR29kQdnrN1Srsi3 KTaAQ6N9w8JOussumBS+3pPFtfYgYtEp8wLxjsrQ39TJuoGvz347xwIluKh41/NcOnM+ pPjXQV3eD0FErHdUUbre0/Vs11kIUyo7CS9s3b7b1NtL8TvqhsaSkKR8U3l2Kcqc6pdk cNzg== X-Gm-Message-State: AOAM530GpCpgaxhAGOIrltPMSCbzaZ+A6z9QE3T6I9l/xlkB3KJwEPUN f8T3cc4CXbIt4Wva69BAheSoqvoeRytH69ru/DR9UYEojYcdGrvc X-Google-Smtp-Source: ABdhPJxD3v1m1GcQjg0KeuN0rcHCTDDNUOJDAzMFdkgGOptPlY88zgkFc61BSxD9z0hMwIGya28aIyC0u/dksZLrBl0= X-Received: by 2002:a05:6102:5f4:: with SMTP id w20mr7512973vsf.55.1633138099467; Fri, 01 Oct 2021 18:28:19 -0700 (PDT) In-Reply-To: <87a6jshbob.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::e29; envelope-from=hongyi.zhao@gmail.com; helo=mail-vs1-xe29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133495 Archived-At: On Sat, Oct 2, 2021 at 1:59 AM Emanuel Berg via Users list for the GNU Emacs text editor 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 =E2=99=A5: BLACK HEART SUIT codepoint 9829, #x2665 <--> \u2665 =F0=9F=98=B8: GRINNING CAT FACE WITH SMILING EYES codepoint 128568, #x1f638 <--> \U0001f638 HZ