[Chicago-talk] Validating utf-8.

Elliot Shank chicago.pm at galumph.com
Thu Oct 2 20:01:42 PDT 2008

I'm just looking for a binary response: is a given file in valid utf-8 format or not?

Using the built-in IO layers seems to hide problems, i.e.

    open my $handle, '<:utf8', $file

doesn't work.  If I feed that a binary file which is plainly not utf-8, perl blithely reads the file without complaint.

More information about the Chicago-talk mailing list