« Return to Thread: which commons codec converts space to %20?

which commons codec converts space to %20?

by Jim the Standing Bear-2 :: Rate this Message:

Reply to Author | View in Thread

hello,

I am always under the impression that URL encoding converts spaces to
%20, and only to find out the URLEncoder from both commons-codec and
java converts spaces to "+" signs.

So the question is, which codec converts spaces to %20?  I am working
on a piece of code that allows users to download some files, and if
the spaces in the filenames are converted to "+" signs, then firefox
automatically chops off everything from the first "+" to the end.  So
I would like to convert them to %20 instead, but not sure which code
actually does that.  Thanks.

- Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: which commons codec converts space to %20?

LightInTheBox - Buy quality products at wholesale price