---
name: "mongoc_uri_unescape"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_uri_unescape"
---

# mongoc\_uri\_unescape(3)

## SYNOPSIS

```
char *
mongoc_uri_unescape (const char *escaped_string);
```

## PARAMETERS

- •

  **escaped\_string**: A utf8 encoded string.

## DESCRIPTION

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

## RETURNS

Returns a newly allocated string that should be freed with *bson\_free()*. If **escaped\_string** contains an invalid UTF-8 character or an invalid escape sequence, returns **NULL**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
