[m-users.] Confused by action of string.prefix_length

Peter Wang novalazy at gmail.com
Wed Jun 8 18:02:44 AEST 2022


On Wed, 08 Jun 2022 09:51:14 +0200 Volker Wysk <post at volker-wysk.de> wrote:
> Hi
> 
> I don't find it obvious what a "code unit" is. Possibly I would confuse it
> with "code point". Please replace "code unit" with "byte", unless there's
> something to be said against it.

Code unit corresponds to "byte" in the UTF-8 encoding, but it is not a
synonym. It is standard Unicode terminology. Please take some time to
read about Unicode encodings. Every programmer must know the basics,
it's part of the landscape just as ASCII and 8-bit code pages was.

Peter


More information about the users mailing list