The way you get %2520 is when. Let me paraphrase from the excellent answer here: The % character is encoded as %25.
How To Clean Out Bowels Quickly One Day Natural Detox Drink & Diet
Since it's not mentioned anywhere in the. If you look at rfc 3986 appendix a, you will see that space is simply not mentioned anywhere in the grammar for defining a url. A bit of explaining as to what that %2520 is :
@metabyter i think it is more technically correct to phrase the question as in a url, should i encode the spaces using %20 or + in the query part of a url? because while the example you show.
%2c is the ascii keycode in hexadecimal for a comma; As the aforementioned rfc does not include any reference of encoding spaces as +, i guess using %20 is the way to go today. The common space character is encoded as %20 as you noted yourself. 20 (unable to get local issuer certificate) asked 13 years, 7 months ago modified 1 year, 2 months ago viewed 394k times
I am interested in knowing why '%20' is used as a space in urls, particularly why %20 was used and why we even need it in the first place. And %20 is the ascii keycode for a space. What is the difference and why should this happen? You can see it in the table.
Sometimes the spaces get url encoded to the + sign, and some other times to %20.