Android emoji issue(convert "\uD83D\uDE04" to 0x1F604) -


i can display emoji in textview way how set emoji unicode in android textview , how convert "ud83d\ude04" code point 0x1f604("ud83d\ude04" represent 0x1f604)?

i find way:java.lang.character.tocodepoint(char high, char low)

int ss1 = integer.parseint("d83d", 16); int ss2 = integer.parseint("de04", 16);  char chars = character.tochars(ss1)[0]; char chars2 = character.tochars(ss2)[0];  int codepoint = character.tocodepoint(chars, chars2); string emojistring = new string(character.tochars(codepoint)); 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -