20 pound

Since it's not mentioned anywhere in the grammar, the only way to encode a space is with percent-encoding (%20). In fact, the RFC even states that spaces are delimiters and should be ignored: In some cases, extra whitespace (spaces, line-breaks, tabs, etc.) may have to be added to break a long URI across lines. is there any difference with %20 and %2 in the urls? I know that %20 means spaces but i am a little bit confused when I saw the %2. How do I replace all the spaces with %20 in C ? Asked 16 years, 7 months ago Modified 1 year, 6 months ago Viewed 142k times When encoding query values, either form, plus or percent-20, is valid; however, since the bandwidth of the internet isn't infinite, you should use plus, since it's two fewer bytes. 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. 312 A bit of explaining as to what that %2520 is : The common space character is encoded as %20 as you noted yourself. The % character is encoded as %25. The way you get %2520 is when your url already has a %20 in it, and gets urlencoded again, which transforms the %20 to %2520. Are you (or any framework you might be using) double encoding. my current cron-job is scheduled as ( 0,20,40 8-23 * * * ) which runs At minute 20, 40, and 0 past every hour from 8 through 23. My cron-job begins at 8:00am but I want to begin at 8:20 instead. Sometimes the spaces get URL encoded to the + sign, and some other times to %20. What is the difference and why should this happen? As the aforementioned RFC does not include any reference of encoding spaces as +, I guess using %20 is the way to go today. For example, %20 is the percent-encoding for the binary octet 00100000 (ABNF: %x20), which in US-ASCII corresponds to the space character (SP). How to encode query string space with %20 instead of + ? Because System.Web HttpUtility.UrlEncode() gives the space with +.