Xojo Conferences
MBSOct2019CologneDE

« FileMaker Server vs. … | Home | Use Apple Maps in you… »

Smileys and UTF32


Here a few smileys:

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

Do you see all 56?
Well, in our plugins we have functions to encode text to HTML and it didn't work for those smileys. The reason is that those are outside the normal 16-bit unicode range. They need 2 characters to encode in UTF-16 format. Most functions in our plugins don't care for this details. Normally it doesn't matter as we pass through texts. But for encoding to HTML we need to process text in UTF-32 well. So plugin needs to decode 16bit character pairs to make sure they are encoded correctly.
After a couple of hours work on our plugin's text handling you can enjoy plugins doing it right!

See Text.EncodeToHTML function in MBS FileMaker Plugin and EncodingToHTMLMBS function in MBS Xojo Util Plugin.
17 01 19 - 08:06
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.