ChrisRich
ChrisRich

Reputation: 8736

Passing unicode emoji from REST API to Android and iOS consumers

What is the most suitable unicode format as string to pass from my REST API to Android and iOS consumers making sure the emoji will display with the least amount of effort by the app developers?

This is my icon.
https://emojipedia.org/fishing-pole-and-fish/

🎣

And my API payload:

{
    "icon": "U+1F3A3"
}

So above emoji can be expressed in a variety of ways:

Or can I simply pass it like this?

{
    "icon": "🎣"
}

Upvotes: 0

Views: 1267

Answers (0)

Related Questions