|
06-06-2008, 10:29
|
|
iconv("UTF-8","windows-1255",$_GET['var'])
header("Content-type: text/html; charset=windows-1255");
.
.
:
function translateUTF8($str)
{
$ANSI = array("","","","","","","","","","","","","","","","","","","","","","","","","","");
$UTF = array("׳","׳‘","׳’","׳“","׳”","׳•","׳–","׳—","׳˜","׳™","׳›","׳œ","׳ž","׳ ","׳¡","׳","׳₪","׳","׳","׳","׳","׳","׳","׳","׳","׳Ÿ");
$str = str_replace($UTF,$ANSI,$str);
return($str);
}
|
|
|