开发者

How to disable URL Encode?

on my website i am having some urls which have spaces.those spaces are开发者_如何学编程 automatically encode by %20.

So how can i disable it?

I want this:

e.g: http://domain.com/my name/abc

instead of it i am getting

http://http://domain.com/my%20name/abc


From the w3c spec:

Spaces and control characters in URLs must be escaped for transmission in HTTP, as must other disallowed characters.

So you cannot 'disable' this. As biscuitstack suggested in the comments, use and underscore (_) instead, or even better a hyphen (-).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜