I want to convert html entities to UTF-8, but mb_convert_encoding
destroys already UTF-8 encoded characters. Whats the correct way?
$text = "äöü ä ö ü ß";
var_dump(mb_convert_encoding($text, 'UTF-8', 'HTML-ENTITIES'));
// string(24) "äöü ä ö ü ß"