[#BloombergLP-bdlde-Utf8Util-isValid-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::isValid :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `string` contains valid UTF‐8, and `false` otherwise. If `string` contains invalid UTF‐8, load into the specified `invalidString` the address of the beginning of the first invalid UTF‐8 sequence encountered; `invalidString` is unaffected if `string` contains only valid UTF‐8. `string` is necessarily null‐terminated, so it cannot contain embedded null bytes. == Synopsis Declared in `<bdlde_utf8util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isValid( char const** invalidString, char const* string); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#