utf8.is_valid

BOOLutf8.is_validSTRINGs

Available in all subroutines.

Returns true if the string s contains valid UTF-8 and returns false if it does not contain valid UTF-8. An empty string is considered valid.

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.