are there any form to convert a string in Java Escape to Index unicode in PHP?
I have this string:
$ str = "\ud83d\ude0e";
And I need obtain the portion after U+:
U+1F60E
Or the python code:
u'\U0001f60e'
The correspondence codes: http://www.charbase.com/1f60e-unicode-smiling-face-with-sunglasses
Thank you.
==== EDIT 09/03 ====
Sorry for my delay and thank you for your reply, but I´m not able to do what I need.
I need to replace the caracter with an image, so I do:
$src = "Hello "."\ud83d\ude0e";
$replaced = preg_replace("/\\\\u([0-9A-F]{1,8})/i", "&#x$1;", $src);
$replaced = str_replace('😎', '<img src="data/emoji_new/1F60E.png">', $replaced);
$result = mb_convert_encoding($replaced, "UTF-8", "HTML-ENTITIES");
But, not work.. The result is:
"Hello ��"
Any more idea??
Thank you again!