(untested)my $characters = eval { decode utf8 => $bytes, Encode::FB_CROAK }; unless (defined $characters) { warn "$filename does not contain valid UTF-8 data, skipping"; next FILE; } # INSERT INTO ...
In reply to Re: Guessing encode text file
by aitap
in thread Guessing encode text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |