vendredi 20 mars 2015

How to save an emoji into database?

I've a string which holds this 🆎 emoji and I wants to store it into sqlite database, this string is coming from server, the string can be in combinations of, only emojis, emojis + text, and only text. How do I handle and store each string I'll get from the server.


I've already code, to store / retrive the texts from the database and its working fine. But when I got an emoji in texts, its changing the output, and instead of an emoji its showing me some random characters like this, 🆎.


How to handle this case?


Aucun commentaire:

Enregistrer un commentaire