Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why apache-commons lib encoding space as + not as %20?

i'm using URLCodec from Apache Commons Codec to encode URL, but it encode space as + NOT as %20

why? and what is the solution?

like image 922
Adham Avatar asked Feb 21 '11 21:02

Adham


1 Answers

See this related question

Of course, you can always do url.replace("+", "%20"); if you need it (after encoding)

like image 184
Bozho Avatar answered Oct 11 '22 10:10

Bozho