unicode строка (…) в utf-8
Code (php)
-
-
function uc2html($str) {
-
-
$ret = ”;
-
-
-
-
$ret .= unicodeValueToUtf8Value($charcode);
-
-
}
-
-
return $ret;
-
-
} function unicodeValueToUtf8Value($num) {
-
-
if ($num[0] == ‘x’) {
-
-
/* Convert hex to decimal */
-
-
-
}
-
-
if ($num < 128) {
-
-
-
}
-
-
if ($num < 2048) {
-
-
-
}
-
-
if ($num < 65535) {
-
-
-
}
-
-
if ($num < 2097152) {
-
-
-
}
-
-
return ”;
-
-
}
-
-
?>
