Ruud H.G. van Tol on Fri, 02 Oct 2026 06:36:32 +0200


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

Re: utf8 library for GP (!)


On 2026-10-01 23:09, Bill Allombert wrote:

I wrote a basic script to convert UTF8 strings to code word and back in GP.

? utf8("βγδζθκλµνξπρςστφχψ")
%1 = [946,947,948,950,952,954,955,181,957,958,960,961,962,963,964,966,967,968]
? unutf8(%)
%2 = "βγδζθκλµνξπρςστφχψ"

This way we can lok up characters in ut8 strings in GP.
Do you aim for a specific version of the Unicode standard?
For example Python 3.14's unicodedata ships with 15.xx.

Relevant is NFC (normalization), to remove surprises.

-- Ruud