convert emoji to their hex code
问题 I'm trying to detect the emoji that I get through e.g. a POST (the source ist not necessary). As an example I'm using this emoji: ✊🏾 (I hope it's visible) The code for it is U+270A U+1F3FE (I'm using http://unicode.org/emoji/charts/full-emoji-list.html for the codes) Now I converted the emoji with json_encode and I get: \u270a\ud83c\udffe Here the only part that is equal is 270a . \ud83c\udffe is not equal to U+1F3FE , not even if I add them together ( 1B83A ) How do I get from ✊🏾 to U+270A U