Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-06-13, 12:08 AM   #1
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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:

Version 5.2.0.50
  • Updated 繁體中文 translations from BNSSNB on Curse
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:

Version 5.2.0.50 Updated ౙ...
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
 

WoWInterface » Site Forums » Site help, bugs, suggestions/questions » Issue with truncated text and Unicode


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off