char* g_uri_escape_bytes ( const guint8* unescaped, gsize length, const char* reserved_chars_allowed )
Escapes arbitrary data for use in a URI.
Normally all characters that are not ‘unreserved’ (i.e. ASCII
alphanumerical characters plus dash, dot, underscore and tilde) are
escaped. But if you specify characters in
they are not escaped. This is useful for the ‘reserved’ characters
in the URI specification, since those are allowed unescaped in some
portions of a URI.
Though technically incorrect, this will also allow escaping nul
Available since: 2.66
Type: An array of
The unescaped input data.
The length of the array is specified in the
The data is owned by the caller of the function.
The length of
A string of reserved characters that are allowed to be used, or
The argument can be
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.