bson_utf8_validate (3) Linux Manual Page
bson_utf8_validate() – Validates that the content within utf8 is valid UTF-8. If allow_null is true, then embedded NULL bytes are allowed (
Synopsis
bool
bson_utf8_validate (const char *utf8,
size_t utf8_len,
bool allow_null);Parameters
Description
Validates that the content within utf8 is valid UTF-8. If allow_null is true , then embedded NULL bytes are allowed ( \0 ).
