[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to represent NBSP in gawk regex?
From: |
david kerns |
Subject: |
Re: How to represent NBSP in gawk regex? |
Date: |
Sun, 20 Feb 2022 20:42:54 -0700 |
from the gawk user manual, my interpretation is that gawk only accepts
UTF-8 encodings...
from https://www.compart.com/en/unicode/U+00A0 the UTF-8 encoding of NBSP
is: 0xC2 0xA0
This seems to work for me:
gawk 'BEGIN { nbsp = "\xc2\xa0"; print "A" nbsp "Z"}'
(once you have the NBSP unicode in a var, you can substitute at will)
On Sun, Feb 20, 2022 at 7:11 PM Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> I want to substitute an NBSP character in gawk. I am not sure how to
> enter such a Unicode character. Could anybody show me how to do it?
> Thanks.
>
> https://www.compart.com/en/unicode/U+00A0
>
> --
> Regards,
> Peng
>
>
- How to represent NBSP in gawk regex?, Peng Yu, 2022/02/20
- Re: How to represent NBSP in gawk regex?,
david kerns <=
- Re: How to represent NBSP in gawk regex?, Wolfgang Laun, 2022/02/21
- Re: How to represent NBSP in gawk regex?, Eli Zaretskii, 2022/02/21
- Re: How to represent NBSP in gawk regex?, david kerns, 2022/02/21
- Re: How to represent NBSP in gawk regex?, Neil R. Ormos, 2022/02/21
- Re: How to represent NBSP in gawk regex?, Eli Zaretskii, 2022/02/21
- Re: How to represent NBSP in gawk regex?, Neil R. Ormos, 2022/02/21
- Re: How to represent NBSP in gawk regex?, Wolfgang Laun, 2022/02/21