“-” is getting replaced by characters %2D1?

limoridy

New Member
i entered below url in IE
https://localhost/myApp/4117-1Space/WebHomewhen i do context.getURL().toString() in my java class, i get string url as
https://localhost/myApp/4117%2D1Space/WebHome . So here instead of character "-" i get %2D1. Is there a way i get the exact word i.e 4117-1Space not 4117%2D1Space? Here i can replace programmatically%2D1 with "-" for quick fix but there will other spcial characters also which will be replaced with these kind of characters.
 
Top