Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>UrlEncode</strong> is useful for query string values (so to the left or especially, right, of each =). </p> <blockquote> <p>In this url, <em>foo</em>, <em>fooval</em>, <em>bar</em>, and <em>barval</em> should EACH be UrlEncode'd separately:</p> <p><a href="http://www.example.com/whatever?foo=fooval&amp;bar=barval" rel="noreferrer">http://www.example.com/whatever?foo=fooval&amp;bar=barval</a> </p> </blockquote> <p>UrlEncode encodes everything, such as ?, &amp;, =, and /, accented or other non-ASCII characters, etc, into %-style encoding, except space which it encodes as a +. This is form-style encoding, and is best for something you intend to put in the querystring (or maybe between two slashes in a url) as a parameter without it getting all jiggy with the url's control characters (like &amp;). Otherwise an unfortunately placed &amp; or = in a user's form input or db value value could break things.</p> <p>EDIT: <strong><a href="http://msdn.microsoft.com/en-us/library/system.uri.escapedatastring(v=vs.110).aspx" rel="noreferrer">Uri.EscapeDataString</a></strong> is a very close match to UrlEncode, and may be preferable, though I don't know the exact differences.</p> <p><strong>UrlPathEncode</strong> is useful for the rest of the query string, it affects everything to the left of the ?.</p> <blockquote> <p>In this url, the entire url (from http to barval) should be run through UrlPathEncode.</p> <p><a href="http://www.example.com/whatever?foo=fooval&amp;bar=barval" rel="noreferrer">http://www.example.com/whatever?foo=fooval&amp;bar=barval</a> </p> </blockquote> <p>UrlPathEncode does NOT encode ?, &amp;, =, or /. It DOES, however, like UrlEncode, encode accented/non-ASCII characters with % notation, and space also becomes %20. This is useful to make sure the url is valid, since spaces and accented characters are not. It won't touch your querystring (everything to the right of ?), so you have to encode that with UrlEncode, above.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload