用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2126|回复: 0
收起左侧

请教URL中带特殊字符参数的问题

[复制链接]
发表于 2012-11-16 14:48:15 | 显示全部楼层 |阅读模式
比如淘宝上很多商品中均包含这个 斜杠 /

搜索参数中如果包含 斜杠 / 则只能取最后一个斜杠后的参数,比如

一个商品的名称是 “大富之家 MAAN曼牌W712/73马自达6/福克斯/蒙迪欧/奔腾机滤

此时只能取到 奔腾机滤, 前面的都被忽略了,如果将 / 用javascript的 encodeURIComponent 方法转换成  %2F ,但服务器又出错了,提示信息如下
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.


大家看看有什么好的办法呢?

本版积分规则