@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. Sometimes the spaces get url encoded to the + sign, and some other times to %20. 知乎,中文互联网高质量的问答社区和创作者聚集的原创内容平台,于 2011 年 1 月正式上线,以「让人们更好的分享知识、经验和见解,找到自己的解答」为品牌使命。知乎凭借认真、专业.
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. The common space character is encoded as %20 as you noted yourself. 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 : The % character is encoded as %25. As the aforementioned rfc does not include any reference of encoding spaces as +, i guess using %20 is the way to go today. What is the difference and why should this happen?
Since it's not mentioned anywhere in.