提交的字符编码怎么会是这样的?\xc8\xed\xbc\xfe\xc6\xaa.....

prettywolf 2003-08-24 07:58:10
代码为:
echo "<meta http-equiv=refresh content=0;url=forum.php?roomid=".$array[subroom].">";

服务器端log显示如下:
127.0.0.1 - - [24/Aug/2003:19:33:49 +0800] "GET /gbbbs/selroom.php?roomid=24&&type=1 HTTP/1.1" 200 131
127.0.0.1 - - [24/Aug/2003:19:33:49 +0800] "GET /gbbbs/forum.php?roomid=\xc8\xed\xbc\xfe\xc6\xaa HTTP/1.1" 500 613
127.0.0.1 - - [24/Aug/2003:19:33:51 +0800] "GET /gbbbs/selroom.php?roomid=1&&type=1 HTTP/1.1" 200 131
127.0.0.1 - - [24/Aug/2003:19:33:51 +0800] "GET /gbbbs/forum.php?roomid=VC/MFC HTTP/1.1" 200 4245
仅当参数为汉字时会出错???
而其它网站的好像不是这样的:\xc8\xed\xbc\xfe\xc6\xaa
...全文
217 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
prettywolf 2003-08-27
  • 打赏
  • 举报
回复
为什么我租用的空间没这有这种情况呢?
应该是PHP或APACHE的设置问题吧?
谁能帮我?
prettywolf 2003-08-25
  • 打赏
  • 举报
回复
呵呵,问题是解决了,
在apache或php的配置中有得设的吗?
在每个网页中都要这样?
vitalgg 2003-08-25
  • 打赏
  • 举报
回复
链接没有被自动转换为URL编码.(base64码).
由于apache对汉语的支持不好.所以出错.
可改为:
echo "<meta http-equiv=refresh content=0;url=forum.php?roomid=".base64_encode($array[subroom]).">";
prettywolf 2003-08-24
  • 打赏
  • 举报
回复
出错为:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@cxcpu.net 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.47 (Win32) Server at localhost Port 1088

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧