mongoc_uri_unescape - Man Page

Synopsis

char *
mongoc_uri_unescape (const char *escaped_string);

Parameters

Description

Unescapes an URI encoded string. For example, "%40" would become "@".

Returns

Returns a newly allocated string that should be freed with bson_free() <https://www.mongoc.org/libbson/current/bson_free.html>​. If escaped_string contains an invalid UTF-8 character or an invalid escape sequence, returns NULL​.

Author

MongoDB, Inc

Info

Sep 04, 2026 2.5.2 libmongoc