Hello,
I read somewhere that the URL Encoding of the space character can be
either %20 or +. The behavior of the URLEncoders from both
commons-codec and jdk converts spaces to +. Is there anyway to force
the URLEncoder to convert spaces to %20 instead? Thanks.
- Jim
It probably needs to be an option added to the URLEncoder class. I
doubt there's anything that does this for you right now.
For now - I would recommend that you use a search and replace on the
output of URLEncoder to change the + to %20.
Hen
On Mon, May 5, 2008 at 9:23 PM, Jim the Standing Bear
Hi Jim,
Jim the Standing Bear wrote:
Hello,
I read somewhere that the URL Encoding of the space character can be
either %20 or +. The behavior of the URLEncoders from both
commons-codec and jdk converts spaces to +. Is there anyway to force
the URLEncoder to convert spaces to %20