I have some string with arabic encoded and ukrainian (cyrillyc) words, like this:
$string = "اِئْتِلافِيٌّ - коаліційний, гармонійний;";
and I want to get characters (arabic) instead all this “&#xxxx;”`s.
If I putting this string into html, I’m getting exactly what i want:
“اِئْتِلافِيٌّ – коаліційний, гармонійний;”
But when I use html_entitis_decode, it does nothing. (mb because arabic encoding does not supports with this function, just basic ASCII).
So, plz tell me what should I do to get same result as browser interpreter?
Your PHP version is probably older than 5.4.0, thus
html_entity_decodeis not using UTF-8.http://php.net/manual/en/function.html-entity-decode.php
Try the following:
View output here on Codepad