| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
Protocols
Protocols.HTTP

# Method Protocols.HTTP.iri_normalize()

Method iri_normalize

  `string iri_normalize(string s)`

Description

  Normalizes the IRI-style UTF-8 and `%XX` encoded string s by decoding all IRI `unreserved` chars, i.e. everything except the URI `reserved` chars and control chars.

  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 IRI.

See also

  iri_decode , uri_normalize