# Method Protocols.HTTP.uri_normalize()

Method uri_normalize

  ``string` uri_normalize(`string` `s`)`

Description

  Normalizes the URI-style `%XX` encoded string `s` by decoding all URI `unreserved` chars, i.e. US-ASCII digits, letters, `-`, `.`, `_`, and `~`.

  Since only unreserved chars are decoded, the result is always semantically equivalent to the input. It's therefore safe to use this on a complete formatted URI.

See also

  uri_decode, uri_encode, iri_normalize