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

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

Re: Decode the octets with hexadecimal values.


From: Hongyi Zhao
Subject: Re: Decode the octets with hexadecimal values.
Date: Sat, 20 May 2023 21:47:30 +0800

On Sat, May 20, 2023 at 8:37 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > 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



reply via email to

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