先用base64_encode编码hello?a=1&b=<?php echo base64_encode("你好");?>
再用base64_decode解码echo base64_decode($b)

解决方案 »

  1.   

    anziqi(美洲狮) 的方法我试过不行
      

  2.   

    hello.php?a=1&b="你好"
    apache提示:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.[error log]里说:
    [Fri Sep 27 13:18:45 2002] [error] [client 127.0.0.1] (22)Invalid argument: couldn't create child process: 22: php.exe, referer: http://127.0.0.1/html/default.php
    [Fri Sep 27 13:18:45 2002] [error] [client 127.0.0.1] (22)Invalid argument: couldn't spawn child process:
      

  3.   

    couldn't spawn child process
    couldn't create child process
    这不都告诉你了吗?卸载你的 Apache 2.x 装上 Apache 1.x 差不多就没问题了
      

  4.   

    还有就是我用高版本的 PHP 也出现莫名其妙的问题 到目前为止我还是只用PHP4.02
      

  5.   

    应该是apache和php之间的兼容问题。你下载其他版本重新安装一次还可参考:
    http://www.php.net/manual/zh/faq.html.php#faq.html.encoding
      

  6.   

    目前来说高版本只能对汉字进行编码然后解码
    我的程序大致是这样的:
    hello.php
    <a href=hello.php?j=你好>显示汉字</a>
    <br>
    <? echo $j;?>
    好像在linux下面没问题。apache是1.0的,2.0没试过
      

  7.   

    hello?a=1&b=<?echo "你好";?>
      

  8.   

    to: happyli(忆忆) 
    你的方法在我的机器上不能通过,thanks
      

  9.   

    告诉你一个万能的办法,不要说你是传汉字,就是你传图片都没问题!!
    <?
       $name='望远镜';
       $send_name=base64_encode($name);
    ?>
       hello?a=1&b=<?php echo $send_name;?>
    使用的时候再解码
    <?
       $name=base64_decode($send_name);
    ?>
    你试试吧,如果好用,给我加分!
      

  10.   

    很可能跟XP操作系统有关系,做ASP的时候XP的IIS跟2000的IIS得出的结果就不一样。换到2000上看看。
      

  11.   

    个人观点是这主要是apache的问题,在IIS中叶发现过这个问题,重新安装一次基本就可以解决了。当然也可以在脚本中克服,比如对url的查询字符串进行编码(urlencode)
      

  12.   

    都说过了,是apache  php 本身的问题,你就是在程序里面编码连接串,那万一要在外部调用呢?又怎么样?
      

  13.   

    个人感觉跟IE有关,就是IE设置中的“总是以UTF-8发送URL”选项另外,为了兼容性,肯定要用urlencode进行编码的
    另外,以GET方法提交的表单,都自动进行编码了的(这个不是PHP干的)
      

  14.   

    仔细看看php.ini文件吧,里面有设置,4.2 和4.04 大不一样
      

  15.   

    编码后在传,php 又很都编码函数的,又安全又好