By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,258 Members | 1,679 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,258 IT Pros & Developers. It's quick & easy.

A question on building URI.

dmjpro
100+
P: 2,476
If my URI builds like this ....
URI="URI?param=my name is debasis & jana&param1=hello word";
If i encode the URI then i request for the response then what would be the value of param & param1?
Please Exaplin .....and can't i get the full value of param?
Aug 20 '08 #1
Share this Question
Share on Google+
4 Replies


dmjpro
100+
P: 2,476
I got the solution ....
I have to build the URI like this ....
Expand|Select|Wrap|Line Numbers
  1. var uri = "uri?param="+escape("debasis&jana")+"&........";
  2.  
Aug 20 '08 #2

acoder
Expert Mod 15k+
P: 16,027
Use encodeURIComponent() instead.
Aug 20 '08 #3

dmjpro
100+
P: 2,476
Use encodeURIComponent() instead.
What's the problem with escape to encode a URI component ?
Aug 20 '08 #4

acoder
Expert Mod 15k+
P: 16,027
See this article - the summary in particular.
Aug 20 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.