Emoji from android to web

Michał Czerwiński

I have a android app, which messages workds with emoji. Saved message with emojis is diaplayed ok on android after fetching from mysql via json. Now I want to display same message with emojis on web script. Found JS lib https://github.com/iamcal/js-emoji but cant make it work. Anyone has a ready to use implementation of it? Sample db record look like this:

Unii \uD83D\uDE02\uD83D\uDE03\uD83D\uDE2E\uD83D\uDE25\uD83D\uDE23\uD83D\uDE0F

These are android emojis. Hot make the work on web?

Michał Czerwiński

Figured it out. The basic configuration from https://github.com/iamcal/js-emoji is enough to make js script to work. The problem was the string encoding. Android uses "Unicode escape sequences" to store specials characters in strings. It works great on mobile, but php has issues with it. Therefore we need to convert Unicode escape sequences with php working version. The converted version of previous db rec

Unii \ud83d\ude02\ud83d\ude03\ud83d\ude2e\ud83d\ude25\ud83d\ude23\ud83d\ude0f

Php convert functions can be found @ How to decode Unicode escape sequences like "\u00ed" to proper UTF-8 encoded characters?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android - How to filter emoji (emoticons) from a string?

From Dev

Show Emoji Keyboard On Android?

From Dev

Android Yes No Button emoji

From Dev

Android Keyboard with Emoji

From Dev

Reading emoji from database

From Dev

Issue displaying Emoji Unicode characters pulled from Twitter API on a web app

From Dev

how to encode and decode emoji in android?

From Dev

Android replace keyboard with Emoji Fragment

From Dev

FCM: Displaying emoji or UTF-8 text on iOS that is sent from Android device

From Dev

remove emoji from string in R

From Dev

remove emoji from string in R

From Dev

Notification from web app (Android)

From Dev

Notification from web app (Android)

From Dev

How to set unicode in textview to show emoji in android?

From Dev

Default emoji button in google keyboard with android 4.4

From Dev

Android Get Country Emoji Flag Using Locale

From Dev

Android TextView ellipsize end with unicode emoji

From Dev

How to get Android emoji code point

From Dev

Python 2.7: detect emoji from text

From Java

Can I open the OS native emoji picker in a web page?

From Dev

communicatin from android app to dynamic web servlet

From Dev

Sending Data from android app to web application

From Dev

Picasso not loading updated image from Web in android

From Dev

Android ViewPager and loading images from web

From Dev

Web Socket Connection failed from Android Client

From Dev

Android, send string from app to web server

From Dev

MVC Web API Call From Android Application

From Dev

Calling .Net web service from Android Device

From Dev

Asynchronous loading image from web to gridview in Android