Checks that bytes are well-formed UTF-8: no overlong forms, no surrogates
(U+D800 to U+DFFF), nothing above U+10FFFF. The result agrees with
validUTF8(); the declared encoding of a string is ignored, only its bytes
are examined.
Checks that bytes are well-formed UTF-8: no overlong forms, no surrogates
(U+D800 to U+DFFF), nothing above U+10FFFF. The result agrees with
validUTF8(); the declared encoding of a string is ignored, only its bytes
are examined.