So… I’m used to oldschool strings where every character is a byte and if you wanted a smiley face you used colon dash parentheses. LVGL provides the nice symbols in the default fonts usable via LV_SYMBOL_x. These are newfangled multibyte characters.
I have run into a problem where when trying to use text selection on a label to provide highlighting that LVGL counts in logical characters, but if I use the standard C functions for things like string length, it counts bytes as expected.
I am trying to figure out how best to handle this. I don’t know enough about multibyte text (not to be confused with wide characters) and I’m hoping others with more experience with multibyte text can point me in the right direction. Essentially, I’m looking for a strlen function that counts logical characters not bytes.
Thanks in advance for any (not null) pointers.