xn_urlencode()
xn_urlencode($s)
【功能】
解码 xn_urlencode() 编码的字符串。
【函数原型】
function xn_urldecode($s) {
$s = str_replace("_", "%", $s);
$s = urldecode($s);
return $s;
}
【参数】
$s:字符串
【用例】
<?php
include "./xiunophp/xiunophp.php";
$r = xn_urlencode("_E4_B8_AD_E5_9B_BD");
echo $r;
//结果: 中国
?>