GET方式提交中文,应该是xxx?act=%s%s之类的链接啊
解决方案 »
- php 表格問題
- 请问 为什么 delphi for php 做的网站 部署到 appserv-win32-2.4.9 访问时,提示有错?是不是 不支持php4?
- preg_match_all 的中文乱码问题
- php里变量名加为什么要加"$"的问题
- 真诚请教高手改错!
- 请教在zend studio for eclipse怎样使用zend studio的快捷键,或者自定义快捷键.
- 求php 验证码码
- 急求。大家用什么软件把access 转换为mysql数据库啊。???
- left 菜单只在只在left菜单下跳转
- 怎么把php的变量和javascript 的变量结合起来?
- 正则表达式(preg_replace函数)问题
- 请教一下,发信的问题
或者把中文作编码处理
AddDefaultCharset是被注释掉的,你也可以尝试一下
rawurldecode()
为 AddDefaultCharset GB2312
即可其他不用修改
版本:2.0.52
我的apache2.0.48并未出现你说的现象,但是我的
AddDefaultCharset是被注释掉的,你也可以尝试一下
我注释掉过,不行。
这种情况不仅仅发生在我写的程序,就连IPB论坛也不行,所以排除是程序问题。
我换了IIS就没有这种情况,奇怪?
后者连google都会出问题
因为没有url编码
win32下需要把get后面的汉字用urlencode()编码,尽量避免用汉字传递参数(GET),
最好不要用中文参数!
使用url编码也只能解决静态数据的问题,动态的数据就不行了。我使用windows 2000 和apache2.0.48,确实没有出现你说的现象。应该还是你的系统配置上的问题
访问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