Should an ampersand be URL encoded in a query string?
问题 For example I quite often see this URL come up. https://ghbtns.com/github-btn.html?user=example&repo=card&type=watch&count=true Is the & meant to be & or should/can it be left as & ? 回答1: From rfc3986: Reserved Characters URIs include components and subcomponents that are delimited by characters in the "reserved" set. These characters are called " reserved " because they may (or may not) be defined as delimiters by the generic syntax, by each scheme-specific syntax, or by the implementation