[code].lt;?
/**
* convert the string into Unicode coded
*
* @param string $input
* @param / > * / > * / Set ='gbk') {
$input = iconv ($input_charset,.Quot; gbk.quot; $input);
preg_match_all. E_ ($c, $input_charset ='gbk') {
$c = iconv ($input_charset,'utf-8', $c);
return. .lt;.Lt; 6;
$n = ord ($c.#91; 1.#93;).Amp; 0x3f;
break. (ord ($c.#91; 0.#93;).Amp; 0x0f).Lt;.Lt;
$n = (ord ($c.#91; 1.#93)). Convert Unicode characters into common coded characters
*
* @param string $str
* @param string $out_charset
* @return string
*/
return $str;
}
$str.=chr (0x80 $c.Amp; 0x3F). $str.=chr (0xF0 $c.gt;.Gt; 18);
$str.=chr (0x80 $c.gt;.Gt; 12.Amp; 0x3F);
> = > > * Eturn unknown
*/
function unescape ($str) {
$str = rawurldecode ($str);
preg_match_all. $ar.#91; $k.#93;.Quot; UCS-2.quot;.Quot; GB2312.quot; pack (.Quot; H4.quot; substr). Ot;.Amp; #.quot; {
echo substr ($v, 2, -1);
$ar.#91; $k.#93; = iconv.