Jason
Jason

Reputation: 363

ajax search suggest escape encoding

if encoding using escape(data) in javascript, how to decode it in server side?

I use ajax to post encoding data with escape javascript function, how can I decode it at the server side with classic asp

Upvotes: 0

Views: 191

Answers (1)

raj
raj

Reputation: 3811

If you are passing arguments in URL (get method), do not use encode().. use encodeURI() function instead. Now, the data (I mean the parameters you pass) comes decoded automatically.

Upvotes: 1

Related Questions