GET方式提交中文,应该是xxx?act=%s%s之类的链接啊

解决方案 »

  1.   

    apache2.0有这个问题,或者你换用apache1.3
    或者把中文作编码处理
      

  2.   

    我的apache2.0.48并未出现你说的现象,但是我的
    AddDefaultCharset是被注释掉的,你也可以尝试一下
      

  3.   

    rawurlencode ()
    rawurldecode()
      

  4.   

    修改AddDefaultCharset ISO-8859-1
    为  AddDefaultCharset GB2312
    即可其他不用修改
    版本:2.0.52
      

  5.   

    回复人: xuzuning(唠叨) ( ) 信誉:671  2005-03-24 14:43:00  得分: 0  
     
     
       我的apache2.0.48并未出现你说的现象,但是我的
    AddDefaultCharset是被注释掉的,你也可以尝试一下
      
     
    我注释掉过,不行。
    这种情况不仅仅发生在我写的程序,就连IPB论坛也不行,所以排除是程序问题。
    我换了IIS就没有这种情况,奇怪?
      

  6.   

    点击链接提交还是直接交http://www.xxx.com/xxx?act=中文
    后者连google都会出问题
    因为没有url编码
      

  7.   

    linux下没问题
    win32下需要把get后面的汉字用urlencode()编码,尽量避免用汉字传递参数(GET),
      

  8.   

    直接也可以用,但是最好是编码后在GET
    最好不要用中文参数!
      

  9.   

    这当然不是程序的问题,也不是用程序方式能够解决的问题。
    使用url编码也只能解决静态数据的问题,动态的数据就不行了。我使用windows 2000 和apache2.0.48,确实没有出现你说的现象。应该还是你的系统配置上的问题
      

  10.   

    为了验证一下特别下载了apache2.0.53,windows2000
    访问http://localhost:800/test.php?url=中文会出现
    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.
    --------------------------------------------------------------------------------Apache/2.0.53 (Win32) Server at localhost Port 80同时err.log里面显示
    [Fri Mar 25 11:42:13 2005] [error] [client 127.0.0.1] (22)Invalid argument: couldn't create child process: 22: php.exe
    [Fri Mar 25 11:42:14 2005] [error] [client 127.0.0.1] (22)Invalid argument: couldn't spawn child process: E:/php/php.exe
    用urlencode编码或者换用apache1.3
      

  11.   

    我也是2000+apache2,没出现这样的现象