Originally Posted by ObbleYeah
does anyone know why my string for truncating names breaks when special characters are involved?
|
Yes. The Lua string functions are not UTF8-aware. To simplify your life, I'd suggest just using
the UTF8 library, and then you can just do:
to truncate to the first 4 characters.