- uri->uri-generic uri-commonprocedure
- uri-generic->uri uri-commonprocedure
To convert between uri-generic and uri-common objects, use these procedures. As stated above, this will allow you to retrieve the original encoding of the URI components, but once you update a component from the uri-common side, the original encoding is no longer available (the updated value replaces the original value).
This will raise a condition when the string contains percent-encoded bytes which are invalid when interpreted in UTF-8 encoding, because these procedures attempt to further decode all percent-encoded characters in these components. The uri-generic egg keeps any special characters percent-encoded because there might be further encoding happening in e.g. the path or query.