MONGOC_URI_UNESCAPE(3)

okay so bestie, welcome to the MONGOC_URI_UNESCAPE(3) page from libmongoc πŸ’– this one is lowkey simple but highkey useful: it takes a URI-encoded string and unescapes it back to normal. slay. ✨


πŸŽ€ SYNOPSIS πŸŽ€

char *
mongoc_uri_unescape (const char *escaped_string);

🌸 PARAMETERS 🌸

  • escaped_string β€” a utf8 encoded string. that's the whole input, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Unescapes an URI encoded string. literally the glow-up from escape codes back to readable text πŸ’…

for example, "%40" would become "@". iconic behavior fr fr ✨


⭐ RETURNS ⭐

Returns a newly allocated string that should be freed with bson_free(). yes bestie, free it β€” don't leave your allocated memory just sitting there like an unread group chat 😭

If escaped_string contains an invalid UTF-8 character or an invalid escape sequence, it returns NULL. no cap, that's the dealbreaker vibe check πŸ’€


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” periodt πŸ’œ


2009-present, MongoDB, Inc β€” the legal cuties have spoken πŸŽ€


signing off from the libmongoc corner of the group chat: version 2.5.6, dated Oct 09, 2026. bye bestie, go unescape something cute πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from