Reputation: 1969
In my PHP code, I receive user's emoji as this string "1f49c" from frontend app.
It should be as simple as echo "\u{1f49c}";
, but my data is only this string: "1f49c"
How to parse it to đ?
I've tried:
$emoji = "1f49c";
$reaction = "\u".$emoji;
json_decode("\"$reaction\"");
but it results: á˝c
not đ
Upvotes: 0
Views: 23