Perl-Sensitive Sunglasses | |
PerlMonks |
Re^5: Why does Encode::Repair only correctly fix one of these two tandem characters?by ikegami (Patriarch) |
on Aug 11, 2014 at 02:02 UTC ( [id://1096955]=note: print w/replies, xml ) | Need Help?? |
The following tool takes out having to do all the hard, error-prone work.
It also finds that you have a problem. You can't tell the difference between the following cp1252 characters after they've gone through your encoding-decoding gauntlet:
Verification:
Note: I didn't have the tool check if one messed up sequence can be a substring of another messed up sequence. The sorting by descending length is there to try to handle that case if it exists. Upd: No such case exists.
In Section
Seekers of Perl Wisdom
|
|