I have two questions about this:sub _checkit { my $txt = shift; use warnings FATAL => 'utf8'; 1 until eval { print "$txt\n"; 1; } or do { my ($charcode) = $@ =~ /U\+(\S+)/ or die $@; $txt =~ s/\x{$charcode}//g; 0; # Try again! }; return ($txt); }
In reply to Fixing utf8 errors by Rodster001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |