currently a few function for utf8 strings are available:
start is counted from 1, currently there is a bug for negative start (counting from the end of string)
if length is not specified, entire rest of string is returned
currently there is no function for count the number of characters of the utf8 string, however you can easely define it.
return str:gsub("[\128-\191]", "" ):len()
now there is official PGC function
Edited 1 time(s). Last edit at 11/12/2018 01:37PM by jpavlik.