How to convert UTF16 (emoji) to HTML Entity (hex) using java -


how convert utf16 (emoji) html entity (hex) using java   have string db "\ud83d\ude02".  try display unicode emoji, displays ��.  search in google convert utf16 html hex code. didnt solution. please me 

i show unicode emoji smily icon

you can use emoji4j library this.

for example:

string line = "hi , fine \ud83d\ude02 \ud83d\ude02, how r u ?";  emojiutils.hexhtmlify(line); //hi , fine 😂 😂, how r u ? 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -