« XojoTalk podcast | Home | The 2015 Xojo Develop… »

Smileys and UTF32


Here a few smileys:

😀😁😂😃😄😅😆😇😈😉😊😋😌😍😎😏😐😑😒😓😔😕😖😗😘😙😚😛
😜😝😞😟😠😡😢😣😤😥😦😧😨😩😪😫😬😭😮😯😰😱😲😳😴😵😶😷

Do you see all 56?
Well, in our plugins we have a function to Encode Text to HTML and it didn't work for those smileys. The reason is that those are outside the normal 16bit unicode range. They need 2 characters in UTF16. Most functions in our plugins don't look for such things. And normally it doesn't matter as we pass through texts. But for encoding to HTML we need to handle UTF32 well. So plugin needs to decode 16bit character pairs to make sure they are encoded correctly.
So after a couple of hours work on our plugin's text handling you can now enjoy plugins doing it right!
17 01 15 - 20:58
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.