bson_utf8_from_unichar() — libbson 1.6.3

- libbson 1.6.3 »
- API Reference »
- bson_string_t

# bson_utf8_from_unichar()

## Synopsis

    void
    bson_utf8_from_unichar (bson_unichar_t unichar, char utf8[6], uint32_t *len);

## Parameters

- `unichar`: A bson_unichar_t.
- `utf8`: A location for the utf8 sequence.
- `len`: A location for the number of bytes in the resulting utf8 sequence.

## Description

Converts a single unicode character to a multi-byte UTF-8 sequence. The result is stored in `utf8` and the number of bytes used in `len`.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.