[Chicago-talk] Validating utf-8.

Elliot Shank chicago.pm at galumph.com
Fri Oct 3 04:32:23 PDT 2008


Elliot Shank wrote:
> 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.

Well, not without warnings, but I don't really want to hook $SIG{__WARN__} looking for specific strings, which is pretty fragile.



More information about the Chicago-talk mailing list