okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

[HttpUrl] '+' getting encoded to '%20'

Open sushantkhanna opened this issue 11 years ago • 5 comments

sushantkhanna avatar Jun 25 '15 06:06 sushantkhanna

Certain encoders change it to '%2B'. Not sure if this was intended, or was against standards. Reporting just in case.

sushantkhanna avatar Jun 25 '15 06:06 sushantkhanna

It's deliberate. Is it causing you grief?

swankjesse avatar Jun 25 '15 11:06 swankjesse

Was. But worked around it. :)

Just for knowledge sake, What should the proper encoding according to the standard? Saw a bit of debate on this earlier.

sushantkhanna avatar Jun 30 '15 14:06 sushantkhanna

There’s no universal standard. %20 requires fewer special cases; + is shorter.

swankjesse avatar Jun 30 '15 21:06 swankjesse

Ok. Closing this.

sushantkhanna avatar Jul 02 '15 16:07 sushantkhanna