Originally Posted by badness
Interesting take but I use that font throughout my entire UI and those names or characters show up in their entirety on any other addon...its just StufRaid which gives me this problem.
|
If that's the case, and judging by the fact that the question marks are at the end of the string, it's probably trying to truncate the text in a way that isn't UTF-8 safe.
Those "special" characters use 2 bytes to display, and string.sub counts individual bytes, so when it tries to cut the string off in the middle of a multi-byte character it ends up attempting to display the first byte as a character on its own, which is why it's showing a question mark.
In the picture, names are being truncated to 6 characters.
Triñ takes 5 bytes to display 4 characters because of the
ñ, this only leaves 1 more byte for the string, so presumably the next character also requires 2 bytes to display and it's being cut off after the first one.