String-isUTF8 reviews

cpanratings
 

RSS | Module Info | Add a review of String-isUTF8

String-isUTF8 (0.01)

What is the difference between utf8::is_utf8?

String-isUTF8 (0.01)

Re: What is the difference between utf8::is_utf8?

* utf8.pm
$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
is_utf8_string

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.