Provides UTF-8 aware string functions implemented in pure lua:
- string.utf8sub(s, i, j)
If utf8data.lua (containing the lower<->upper case mappings) is loaded, these additional functions are available:
All functions behave as their non UTF-8 aware counterparts with the exception that UTF-8 characters are used instead of bytes for all units.
string.utf8reverse(s) doesn't work, always produces errors.
By tracing, I found the cause:
c = strbyte(s, pos)