tags:

views:

80

answers:

2

Hi

when i am trying to open a page using window.open, its not working. The path shown is like "xyz/a%20b%20c%20.pdf" where it is suppose to be "xyz/abc.pdf". if i remove the "%" and "20" manualy, it will work.. how can i remove this using code?? please help me

Thanks in advance..

tismon

+7  A: 

try urldecode

Marek Karbarz
A: 

This is known as URL Encoding. You need to decode the string. If you are using jQuery you should check out the URL Encode plug in.

Blake Taylor