[code].lt; PHP
/ / / / / / / utf8 ---.gt; Unicode
function utf8_unicode ($c); $n = ord ($c.#91; 1.#93;).Amp; 0x3f;
return $n;
case 3:. / > $n = (ord ($c.#91; 0.#93;).Amp; 0x0f).Lt;.Lt;
$n = (ord ($c.#91; >) Unicode
function gb2un ($g) / / / / / / / > GB2312 string
{
preg_match_all (.Quot; /.#91); Quot; utf-8.quot; $v)..quot;.Quot;
return $str;
if. Uot; ucs-2.quot;.Quot; gb2312.quot; pack (.Quot; h4.quot; substr ($v, -1)); }
}
return join (.Quot;.Quot; $ar);
}
//unicode converts to GB2312 / > > > > >} / >