[#BloombergLP-bdlde-Utf8Util-isValid-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::isValid :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `string` having the specified `length` (in bytes) contains valid UTF‐8, and `false` otherwise. `string` need not be null‐terminated and can contain embedded null bytes, and `string` may be null if `0 == length` (see {Empty Input Strings}). == Synopsis Declared in `<bdlde_utf8util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isValid( char const* string, xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#