Posts

Showing posts from 2015

Supporting Unicode and Emoji characters in Unity3D (or other Engine) Game - The Lazy Way

Image
Recently I had been working on a client project. Most of their targeted customers were not English speakers. As a result, they wanted to support multiple languages in their games. If that was not enough, they also wanted to support Emoji's in there. We were developing their game on Unity3D. Most of the game's actions were validated and executed on the backend, which was configured on LAMP [Linux, Apache, MySQL and PHP]. By the time this issue was raised, most of the work was already done. The Database structure and the game data was already populated. The Mess A quick search on Google was enough to confuse you even more. Turns out, Unicode characters can be supported by various encodings like UTF8 & UTF16. Add to that, there are multiple versions of UTF8. And there are multiple versions like UTF-8, CESU8, UTF-8 modified. And then there was MySQL which has its own sets of character encoding. MySQL supports UTF-8. But if you also want to use Emoji, you need to use a s