How can i convert this string using php to readable string?
for example:
/%d7%a6%d7%95%d7%a8-%d7%a7%d7%a9%d7%a8/
this string is in hebrew
Thanks
How can i convert this string using php to readable string?
for example:
/%d7%a6%d7%95%d7%a8-%d7%a7%d7%a9%d7%a8/
this string is in hebrew
Thanks
You should use mb_convert_encoding
echo mb_convert_encoding("/%d7%a6%d7%95%d7%a8-%d7%a7%d7%a9%d7%a8/", 'UTF-8', 'UTF-16BE');
For example,
$string = '%u05E1%u05E2';
$string = preg_replace('/%u([0-9A-F]+)/', '&#x$1;', $string);
echo html_entity_decode($string, ENT_COMPAT, 'UTF-8');