progNewbie
progNewbie

Reputation: 4832

Shown emojis are different to them chosen, why?

I just implemented this library in my android app (with your help): https://github.com/ankushsachdeva/emojicon

It looks like this now: enter image description here

As you can see, the smiley I picked from the menu looks different to the one send. Its another theme or someting like that.

Is this controlled by each smartphone itself? How does this work? Does anyone know? How can I fix that?

Thanks!

Upvotes: 0

Views: 386

Answers (2)

Srujan Barai
Srujan Barai

Reputation: 2365

The TextView you must be creating in the xml should be EmojiconTextView instead of normal TextView. Same way make your EditText as EmojiconEditText so that it can read the emoji as well.

If you want to understand why this is happening, then the answer is, Emojis are nothing but unicodes. Your TextViews and EditTexts needs to be taught how to read them. If you use normal EditText, it will read it the Android way, if you use EmojiconEditText, it will read it the library way.

Upvotes: 2

herme5
herme5

Reputation: 423

I think it depends on the OS, (smartphones, computers or any devices). Emojis are just unicode characters which have to be interpreted. And i was was surprised when i managed to compile a c/c++ program with emojis as std output on my Mac (and had a custom terminal prompt with lot of emojis). But obviously i don't think I could compile that on a Linux machine.

You should do something on your TextField so that it will correctly read the emojis, and not with the default behaviour/encoding.

Hope this will help you :

http://www.unicode.org/reports/tr51/index.html

Upvotes: 3

Related Questions