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: Fri, 1 Oct 2021 21:00:56 +0800 Message-ID: References: <83sfxldnal.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 01 15:05:02 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 1mWIDk-0001cz-NI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 15:05:00 +0200 Original-Received: from localhost ([::1]:45546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWIDj-0006tf-0Q for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 09:04:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWIAC-0006oa-0t for help-gnu-emacs@gnu.org; Fri, 01 Oct 2021 09:01:24 -0400 Original-Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]:35532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWIA6-0000jB-9s; Fri, 01 Oct 2021 09:01:15 -0400 Original-Received: by mail-vk1-xa35.google.com with SMTP id x207so4389808vke.2; Fri, 01 Oct 2021 06:01:08 -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 :cc; bh=P9qje6xxINHPkDqIx+Q1UIIIO351dsEWOR5nu9qM3Kc=; b=FN9QgZneUOv80VC+yO/hGXYovhKdzfh3K/OvQfWC639brKB23nOhRpkaOMyJXIbaxX ATqryi57Kym1HNp1z1+AHpHORXmPnPGxPm85g/TXjP8nTd3buvzUUZW4tcFHAiG/Gby5 uF7oIT+zNNa8QaZ0HN5VCELGImLGHiRkthXn718da2xaWFRegHrl8baGKnuyl4sXKebe vZve4oILR3jLgZUkpflKowzHmGsZKRja9T/kS+H9GurGcxJb5n8iofz1jfMzA8+NnyJM ve+3tbWxvE7a/Anb5RtFEL6mua0j6khqKHKOeSiRJiaUVtugQRau0alhnUT8T9crBp3W shXg== 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:cc; bh=P9qje6xxINHPkDqIx+Q1UIIIO351dsEWOR5nu9qM3Kc=; b=IwZ5/m3yA00o6UmXRCgH/m2/zsaFaJsT5SVeNgFQ5x/5gyvfFFHnqyadneEc7MJ5tg 65JT1hF3nfw/m6zd4OWv9RWCKFE21qPqsv+GqbDYjr0YF/zToepDXfw3H6afSUEfPpxh CtayQku5Wfn4pKItV7Vln0f88Jw7czkKfcP9EKtHuMSwvyL2QVimJkeKf8zlIAwR+DoQ Mt/7BxalD4dwG9YC6QUj7M+/Jz/6xjX2BokYtcR3joUXpQQngYLcKTl+nn+EE5aSmkea FwS9NWyXDncw/GIE03evIqmiOLyxG1O6roNBDSRd9TZxPoskAds52OyedaWlTn6NZN4H 4hHA== X-Gm-Message-State: AOAM530qEnWPCjc4aqjoVLDRw1UHn1meBUI5249mI3SpJJB/zjRt7rI8 zKBNpGmGd9xDGuGh5xeVAhqh7dEr80wyUtftAMf1q86vG6qJI9L5 X-Google-Smtp-Source: ABdhPJwMyxW99xtX9ApTQrUT/p++IhVvh8zEf7q69TRI0s5WP7ciB8kx78GDgg6N8zlBLP7YN4S7Ta525QvoWYOiXpQ= X-Received: by 2002:a1f:cdc7:: with SMTP id d190mr797771vkg.1.1633093268097; Fri, 01 Oct 2021 06:01:08 -0700 (PDT) In-Reply-To: <83sfxldnal.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::a35; envelope-from=hongyi.zhao@gmail.com; helo=mail-vk1-xa35.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:133486 Archived-At: On Fri, Oct 1, 2021 at 6:58 PM Eli Zaretskii wrote: > > > From: Hongyi Zhao > > Date: Fri, 1 Oct 2021 18:27:16 +0800 > > > > I noticed some comments on the escape syntax used by Emacs from here > > [1-2]. By default, the `describe-char' command will give the code > > point representation of the character in hexadecimal and octal > > formats, say, #o240, #xa0. So, I want to if there is a convenient way > > to do the conversion between the hexadecimal character code > > representation and the corresponding Unicode value. > > What do you mean by "the corresponding Unicode value", and how is it > different from the hexadecimal codepoint shown by describe-char? Sorry for my inaccurate description. I mean the "\uxxxx" or "\U00xxxxxx" counterpart of the code point represented by decimal/hexadecimal/octal formats. HZ