Characters allowed in a URL

前端 未结 9 926
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 05:33

Does anyone know the full list of characters that can be used within a GET without being encoded? At the moment I am using A-Z a-z and 0-9... but I am looking to find out th

9条回答
  •  终归单人心
    2020-11-22 06:22

    The characters allowed in a URI are either reserved or unreserved (or a percent character as part of a percent-encoding)

    http://en.wikipedia.org/wiki/Percent-encoding#Types_of_URI_characters

    says these are RFC 3986 unreserved characters (sec. 2.3) as well as reserved characters (sec 2.2) if they need to retain their special meaning. And also a percent character as part of a percent-encoding.

提交回复
热议问题