Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL Encoding at client side  RSS feed

 
sweety soni
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am facing problem in getting values from server via query string......at server side no encoding has been done for special characters and hence when i receive data by req.getparameter i dont get the complete value of the filed rather i get value till special character i.e if field value is S&S on server then at client i get only S....

My question is ..is it possible at client side to get the complete data even if there is no special encoding done at server side for special characters..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The URL must be properly encoded, otherwise there's no way to tell what's data and what are delimiters.

By the way, there is no such method as getparameter -- it's getParameter.
 
sweety soni
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for yor reply.....and yea there is no such method getparameter....jus did not take care while typing...kind of typo error ;)
 
sweety soni
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more question is this getParameter which is causing loos of data (special character)...can we get data (value with special character) without encoding at server by using somthing else instead of using getParameter ...if yes what is that we can use?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!