[fpc-pascal] Unicode chars losing information
Marco van de Voort
fpc at pascalprogramming.org
Sun Mar 7 18:11:58 CET 2021
Op 2021-03-07 om 17:38 schreef Ryan Joseph via fpc-pascal:
>
>> On Mar 7, 2021, at 9:31 AM, Marco van de Voort via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>>
>> Probably it is not in the BMP and thus needs more position than one.
> Isn't char[1] a 2 byte wide char? Not sure I understand "more position than on" though.
Yes it is. And there are about 1114000 unicode codepoints, or about 17
times what fits in a 2-byte wide char.
https://en.wikipedia.org/wiki/Code_point
https://en.wikipedia.org/wiki/UTF-16
More information about the fpc-pascal
mailing list