SYNOPSIS

#include <bson.h>

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

DESCRIPTION

The bson_utf8_from_unichar() function shall convert unichar to a UTF-8 sequence and store it in utf8. The length of the sequence in bytes will be placed in len.

AUTHORS

This page was written by MongoDB, Inc.