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: Decode the octets with hexadecimal values. Date: Sat, 20 May 2023 21:47:30 +0800 Message-ID: References: <83ttw7s9fq.fsf@gnu.org> <83pm6vs5g6.fsf@gnu.org> <83ilcnrxg2.fsf@gnu.org> 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="34681"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 15:48:18 2023 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 1q0MwT-0008pN-HN for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 15:48:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0Mvz-0001gg-7T; Sat, 20 May 2023 09:47:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0Mvx-0001gV-O8 for help-gnu-emacs@gnu.org; Sat, 20 May 2023 09:47:45 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0Mvw-0007WR-7U; Sat, 20 May 2023 09:47:45 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-96f7bf3cf9eso265391466b.0; Sat, 20 May 2023 06:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684590462; x=1687182462; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nqcYW7zclMOu8Rad2jIMQSlUQ2By24xoH4Ad+CGPDB8=; b=huaPnKUOpRJr+dr7r8lC83+scrSFxok39/+36mJTwU8ajzwRmJMrBkeYyFYoIwnlCZ 4JhIxuW6FRImVlFnyDJweqWTThC7JmHmUU6r1pWnhdVvurhqfkEyT3iUdXQ1ZccPPoTq P7cbVwSolN/8WoNrOFk5N7iMrzqbA97MIl2jbigOGWcmVBBz8e1ow7Ci8qQV55DUFrVS DQG4ZF8L9K82E3P7J6cgQifC6OalACCbkG8fcv5+LfPyQW77vm4VEnpTa7d5dn4ChcVH nY2csSXoupK1Rlnyp68A+X13vaAZdqt0Fn21y5l+DzGS8prBtINZ2vmutyTEV4/2JqZ/ vTtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684590462; x=1687182462; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nqcYW7zclMOu8Rad2jIMQSlUQ2By24xoH4Ad+CGPDB8=; b=B3gagEPe3SUeCKo5vMcXETRowKm0UJkeg+4h9J+AnbgvaVxG1sLb/DtFWaa1fV+hul WOqC6whchh44TAQjzKH0nBomovp5tEflZ/z3GBxE3Lhbz6kJFWLczJrGITjWmYsyJPwE rYbedx81LXXYJOE1T/hWov9p5oygJE+RJ9EA1BB8lcrN5RCSSw+TohIl1r7hIeE8Cocp 5OVNclD6qr7dUv/Oo+vMJvw42TjJsZq9RpBnV2aN1nLEOfzrBNOwUoNIGjAMODEmJqq0 obLY11jwpE9j2D05QDBpptZUfRIHVfvuT/eo/uM5GwxiWFMZTqQJXaDUamf8mAMtrAYl yOCQ== X-Gm-Message-State: AC+VfDyNEZj+DVyjSLmmFW0dikVknvNE7YoiA8E0CPfyHX3TCG6VwSuJ W4TMtpZQ6UdnctSYnIBzPCCsUl+e2zesywlC1IroxI0kWknuCl5x7hc= X-Google-Smtp-Source: ACHHUZ6J6yyMTKI6qvUmGHWerlVyRf36tpSfJAzyiXBqbiyvohcWMyxPZmeqlBD5tyG2pYkVv4RpoaRaqgPJpIARjjA= X-Received: by 2002:a17:907:1b29:b0:966:4d75:4a44 with SMTP id mp41-20020a1709071b2900b009664d754a44mr4596204ejc.24.1684590461821; Sat, 20 May 2023 06:47:41 -0700 (PDT) In-Reply-To: <83ilcnrxg2.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62b.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143669 Archived-At: On Sat, May 20, 2023 at 8:37=E2=80=AFPM Eli Zaretskii wrote: > > > From: Hongyi Zhao > > Date: Sat, 20 May 2023 19:01:29 +0800 > > Cc: help-gnu-emacs@gnu.org > > > > But by comparing the results of Python and Emacs, we can see that > > there are three redundant underscores in the latter, as shown in the > > attached screenshot. Any tips for this behavior? > > It's not an underscore, it's the NBSP character, I think? Yes, you're right, as shown below: M-x describe-char RET position: 152 of 260 (58%), column: 13 character: (displayed as ) (codepoint 160, #o240, #xa0) charset: unicode (Unicode (ISO10646)) code point in charset: 0xA0 script: latin syntax: which means: whitespace category: .:Base, b:Arabic, j:Japanese, l:Latin to input: type "C-x 8 RET a0" or "C-x 8 RET NO-BREAK SPACE" buffer code: #xC2 #xA0 file code: #xC2 #xA0 (encoded by coding system utf-8-unix) display: by this font (glyph code): ftcrhb:-PfEd-DejaVuSansMono Nerd Font Mono-regular-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#x62) hardcoded face: nobreak-space Character code properties: customize what to show name: NO-BREAK SPACE old-name: NON-BREAKING SPACE general-category: Zs (Separator, Space) decomposition: (noBreak 32) (noBreak ' ') There are text properties here: fontified nil wrap-prefix " " Best, Zhao