Emoji symbol in string.xml crashes app

Viewed 12713

I would like to integrate the emoji symbol in my android app. Therefore I looked up the hex code for the utf-8 symbol and added the following to my string.xml file:

<string name="thumbsup">Perfect <node>&#x1f44d;&#x1f44d;</node></string>

This should result into Perfect . However, instead my app crashes when the call activity tries to display this:

JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xf0

Not particularly perfect ;)

2 Answers
Related