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

See mw.ustring.len for a similar function using Unicode codepoints rather than bytes.