Hello,
I've made an utility for manage UTF8 string easily, it work for my use but I don't know if it will work for any purpose...
Because an utf8 can have from 1 to 4 bytes length, I consider to use the string type to store one utf8 character.
As in the example attached, you can use
- TS8 class to easily split each UTF8 character in an array and accessing by TS8.Char[index]
- UTF8CharToCode to convert an UTF8 character to DWORD
- CodeToUTF8Char to convert a DWORD code to an UTF8 character
Of course, this is not appropriate if you handle large utf8 string.