Voting

: six minus five?
(Example: nine)

The Note You're Voting On

aissam at yahoo dot com
19 years ago
For those who have troubles in displaying UCS-2 data on browser, here's a simple function that convert ucs2 to html unicode entities :

<?php

function ucs2html($str) {
$str=trim($str); // if you are reading from file
$len=strlen($str);
$html='';
for(
$i=0;$i<$len;$i+=2)
$html.='&#'.hexdec(dechex(ord($str[$i+1])).
sprintf("%02s",dechex(ord($str[$i])))).';';
return(
$html);
}
?>

<< Back to user notes page

To Top