Pike v8.0 release 1738

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