But when I use URLEncoder.encode API to encode the parameter values I find it converts space character into "+" instead of %20. When I use "+" to replace the %20 in URL it also works.
So is it true that both "+" and "%20" can be used to replace space char in URL ?
The MIME type of the data being encoded plays a role. It may even be browser dependent - application/x-www-form-urlencoded uses + and properly encoded URIs use %20.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley