I am trying to show emoji using its unicode value(). But I am getting escaped string as \u00f0\u0178\u02dc\u20ac
, which is decoded into 😀
.
I am using Mysql server and PHP 5.4 in my project. In mysql, it's stored as 😀
. Is there any way to unescape this and return Actual unicode from PHP server
I tried,
iconv('ASCII//TRANSLIT', 'UTF-8', '😀');
, mb_convert_encoding($var, "US-ASCII", "UTF-8")
and utf8_encode(). not working.
Thanks