时间:2021-07-01 10:21:17 帮助过:107人阅读
$s = '%C2%B0%C3%99%C2%B6%C3%88%C2%B0%C3%99%C2%BF%C3%86%C2%A3%C2%AD%C2%B6%C3%BE%C3%8E%C2%AC%C3%82%C3%AB%C2%B4%C3%8A%C3%8C%C3%B5';
$s = urldecode($s);
if(mb_check_encoding('utf-8')) {
$n = 0;
for($i=0; $iif($n > strlen($s)/2 * 0.8) $s = utf8_decode($s);
}
echo $s;