如www.abc.com?name = "中国". 在另一个页面可以获得"中国"这个参数,谢谢

解决方案 »

  1.   

    在Linux下没有问题,在windows下就要设置了。
      

  2.   

    urlencode()后。传递过来的再用urldecode
    urldecode
    (PHP 3, PHP 4 )urldecode -- 解码已编码的 URL 字符串
    描述
    string urldecode ( string str)
    解码给出的已编码字符串中的任何 %##。返回解码后的字符串。 例子 1. urldecode() example<?php
    $a = explode('&', $QUERY_STRING);
    $i = 0;
    while ($i < count($a)) {
        $b = split('=', $a[$i]);
        echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])),
             ' is ', htmlspecialchars(urldecode($b[1])), "<br />\n";
        $i++;
    }
    ?>  
     
      

  3.   

    接收时:
    $name = iconv('','utf-8',$_GET['name']);构造链接的时候就不用urlencode()了.
      

  4.   

    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">即可