Page MenuHomePhabricator

function phutil_is_utf8($string)
Arcanist Technical Documentation ()

Determine if a string is valid UTF-8.

Parameters
string$stringSome string which may or may not be valid UTF-8.
Return
boolTrue if the string is valid UTF-8.