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

# bson\_utf8\_get\_char(3)

## SYNOPSIS

```
bson_unichar_t
bson_utf8_get_char (const char *utf8);
```

## PARAMETERS

- •

  **utf8**: A validated UTF-8 encoded string.

## DESCRIPTION

Converts the current character in a UTF-8 sequence to a bson\_unichar\_t, the 32-bit representation of the multi-byte character.

## RETURNS

A bson\_unichar\_t.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
