| Module Info
| Add a review of String-isUTF8
What is the difference between utf8::is_utf8?
Re: What is the difference between utf8::is_utf8?
$flag = utf8::is_utf8(STRING)
(Since Perl 5.8.1) Test whether STRING is in UTF-8 internally. Functionally the same as Encode::is_utf8().
* man perlapi
Returns true if first "len" bytes of the given string form a valid UTF-8 string, false otherwise. Note that 'a valid UTF-8 string' does not mean 'a string that contains code points above 0x7F encoded in UTF-8' because a valid ASCII string is a valid UTF-8 string.