开发者

parameter deliver issue among web pages

I found that when you capture parameter value delivered from other pages, the "+" sign in the parameter value will be replaced wit开发者_开发知识库h space. I'm not sure if there is other signs to be replaced. So my question is, besides using string.replace() method, any other way to avoid such value changing?


You may use url encoding to encode protected characters in your URL.

See: rfc3986 for reserved characters and not reserved characters. Nearly every language has its URL encoding implementation.

For example the Character + is reserved and will be replaced by %2B

Another reference can be found here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜