0

As I am trying to convert the Beyonc\u00e9 and \u00f7 to Beyoncé and ÷(division) respectively.

I have used mb_convert_encoding and iconv methods but it's not working

echo mb_convert_encoding($str, 'UTF-8');
echo iconv('utf-8', 'ascii//TRANSLIT',$str);


Beyoncé and ÷
Noob
  • 29
  • 9

1 Answers1

0

You question is the same as Unicode character in PHP string and the answer is available in. You can use the json_decode method explained there.