uri_to_iri
Convert a Uniform Resource Identifier(URI) into an Internationalized Resource Identifier(IRI).
This is the algorithm from RFC 3987 Section 3.2, excluding step 4.
Take an URI in ASCII bytes (e.g. '/I%20%E2%99%A5%20Django/') and return
a string containing the encoded result (e.g. '/I%20♥%20Django/').
def uri_to_iri(
uri: string|bytes
) - > string
Convert a Uniform Resource Identifier(URI) into an Internationalized Resource Identifier(IRI). This is the algorithm from RFC 3987 Section 3.2, excluding step 4.
Parameters
| Name | Type | Description |
|---|---|---|
| uri | `string | bytes` |
Returns
| Type | Description |
|---|---|
string | A string containing the decoded result where percent-encoded UTF-8 sequences are converted to their corresponding Unicode characters. |