WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Site help, bugs, suggestions/questions (https://www.wowinterface.com/forums/forumdisplay.php?f=18)
-   -   Issue with truncated text and Unicode (https://www.wowinterface.com/forums/showthread.php?t=45947)

Phanx 03-06-13 12:08 AM

Issue with truncated text and Unicode
 
Odd little issue I noticed today. Whenever I post an addon update, I always post a comment with the latest changes. Today after posting patch updates, I posted a couple of translation updates with the following comments:

Quote:

Version 5.2.0.50
  • Updated 繁體中文 translations from BNSSNB on Curse

Quote:

Version 5.2.0.50
  • Updated 简体中文 and 正體中文 translations

(Yes, both addons happen to have the same version number.)

On my addon author list, at the bottom where it shows recent comments on my addons, those comments are being truncated, but the function doing the truncating is apparently not Unicode-aware, and the text is getting cut mid-Chinese glyph, resulting in the following displayed text:

Quote:

Version 5.2.0.50 Updated ౙ...
Quote:

Version 5.2.0.50 Updated ಠ...
As you can see, the final characters are displayed as Telugu and Kannada glyphs, respectively, not the Chinese glyphs that appear in the actual comments.

Granted, this is an English-language site and I don't expect you guys to go out of your way to support Chinese or anything. I just thought it was pretty funny to look at my recent comments and see half of a Face of Disapproval lurking there. :p

Dolby 03-06-13 01:45 AM

Oh fun, thanks for pointing that out. I'll take a look where I'm truncating it. Might be a bit if a challenge if its the vbulletin backend doing the unicode stuff after. :)

Phanx 03-06-13 04:43 AM

On a possibly related note, sometimes when I edit my addon descriptions, non-Latin characters are displayed normally in the edit box (eg. 中) but other times they're displayed as HTML entities (eg. & # 20013 ; without all the spaces).

Any idea why this is? Generally the only non-Latin text in there are localized language names, and occasionally a localized one-line description, but I'd rather see the actual characters than a big blob of HTML entities. :p


All times are GMT -6. The time now is 03:40 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI