<?phpheader("Content-Type: text/html; charset=GB2312") ; 
$d=urldecode("%E4%B8%AD%E5%9B%BD");//中国 google 
$d = mb_convert_encoding($d, "GBK", "UTF-8"); 
echo $d; ?>

解决方案 »

  1.   

    <b>Fatal error</b>:  Call to undefined function mb_convert_encoding()
    这个函数不是PHP内置函数啊
      

  2.   

    extension=php_mbstring.dll就是这个,你把他打开
      

  3.   

    $d = iconv("GBK", "UTF-8", $d);
      

  4.   

    1楼正解
    ps: google用utf8的编码,要想不转换
    <?php
    header("Content-Type: text/html; charset=utf-8") ; 
    $d=urldecode("%E4%B8%AD%E5%9B%BD");//中国 google 
    echo $d; 
    ?>