* takes a string of unicode entities and converts it to a iso-8859-9 encoded string
* Unsupported characters are replaced with ?.
*
* takes a string of unicode entities and converts it to a iso-8859-9 encoded string
* Unsupported characters are replaced with ?.
*
if (! preg_match("'&#[0-9]+;'",$string) ) return $string;
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso88599('\\1')",$string);
if (! preg_match("'&#[0-9]+;'",$string) ) return $string;
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso88599('\\1')",$string);