Link to home
Start Free TrialLog in
Avatar of Subo123
Subo123

asked on

URL encode through javascript

I am building a string which has special characters like %. This string needs to be passed in URL.
The string "Type" has the special character.

URL = test.asp?abc=" + Type

Now when I use request.querystring it throws junk characters.
How can I get the exact string which I have passed.
     

ASKER CERTIFIED SOLUTION
Avatar of CJ_S
CJ_S
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Subo123
Subo123

ASKER

Great! Itz working
Why B if it works and it is the only possible answer??