1

I have a string that contains some emoji codes converted into hex numeric entities, like for example this:

  • � -
  • � -
  • � -
  • � -

What i need is to convert this entities into something readable from javascript when sending from PHP using json_decode.

hakre
  • 193,403
  • 52
  • 435
  • 836
FidoBoy
  • 392
  • 6
  • 18
  • What is "_something readable from javascript_"? – AbraCadaver May 05 '14 at 19:25
  • 1
    After you've written what you need, please share what you did so far and what your programming question is. Stackoverflow is not a Need & Greet site, but about concrete programming quesitons (might sound harder than it is.) See http://stackoverflow.com/questions/how-to-ask – hakre May 05 '14 at 19:25
  • I assume you are asking something similar to this question: http://stackoverflow.com/questions/182410/how-to-json-decode-array-elements-in-javascript – Yorick May 05 '14 at 19:26
  • I actually wonder which emoji those should represent. Can you please reference which ones? – hakre May 05 '14 at 19:28
  • Ok, guys, i'll try to explain it a bit better. When i display in the browser that numeric entities it display two squares but it should display a heart (the emoji symbol) so what i need is to convert that codes into another format (unicode i suppose) to display it correctly – FidoBoy May 05 '14 at 19:39
  • Does this has any sense now? – FidoBoy May 05 '14 at 19:41
  • 2
    It doesn't make any sense because it sounds like you're guessing. Maybe some background information might shed some light: http://www.iamcal.com/emoji-in-web-apps/ - It ships with PHP code btw. – hakre May 05 '14 at 19:46
  • Just use *decimal* instead of hex. – developerwjk May 05 '14 at 21:01

0 Answers0