| Ruud H.G. van Tol on Fri, 02 Oct 2026 18:46:23 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: utf8 library for GP (!) |
On 2026-10-02 08:55, Bill Allombert wrote:
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:
There are strict ("UTF-8", with the hyphen) and lax (commonly called "utf8") ways.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.
See for example https://perldoc.perl.org/Encode#UTF-8-vs.-utf8-vs.-UTF8 Does it support cp=0 in any way? -- Ruud