Bill Allombert on Fri, 02 Oct 2026 08:55:03 +0200


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

Re: utf8 library for GP (!)


On Fri, Oct 02, 2026 at 06:36:18AM +0200, Ruud H.G. van Tol wrote:
> 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?

This script only implements UTF-8 encoding/decoding only, not Unicode.

Cheers,
Bill.