Rodster001 has asked for the wisdom of the Perl Monks concerning the following question:
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); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fixing utf8 errors
by graff (Chancellor) on Oct 31, 2015 at 04:07 UTC | |
by Rodster001 (Pilgrim) on Oct 31, 2015 at 16:07 UTC | |
by graff (Chancellor) on Nov 01, 2015 at 01:26 UTC | |
|
Re: Fixing utf8 errors
by Anonymous Monk on Oct 30, 2015 at 18:59 UTC |