すべての数値エンティティを適切な UTF-8 に置き換えるにはどうすればよいですか?
例: ソースでは、文字列は次のように表示されます。
$string1 = "The Devil's in the Details";
$string2 = "Dónde estás, hermano?";
そして、私はそれを置き換える必要があります
echo string1; //OUTPUTS Should be: The Devil's in the details
echo string2; //OUTPUTS Should be: Dónde Estás, Hermano?
試してみhtml_entity_decode()
ましたが、うまくいきませんでした; 何か案は?