Translations:Extension:Scribunto/Lua reference manual/2162/en

Much like string.byte, except that the return values are codepoints and the offsets are characters rather than bytes.