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.
精彩评论