in reply to unicode string comparison (perl 5.26)
That's a bit short on information... and also probably a bad copypaste in the line #clean it up.
At which step in the process do you decode your CSV file from "unicode" (which must be one of the Unicode encodings, probably UTF-8)? The decoding, if done with proper error handling, should take care for malformed characters before you do any regex operations.
Where exactly do you get that message? Perl regular expressions work on characters, and I doubt that it is possible to feed them "malformed characters" from a Perl scalar - unless there's some XS code involved.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unicode string comparison (perl 5.26)
by md351 (Initiate) on Nov 01, 2019 at 05:03 UTC | |
by haj (Vicar) on Nov 01, 2019 at 14:20 UTC | |
by swl (Prior) on Nov 01, 2019 at 06:15 UTC | |
by AnomalousMonk (Archbishop) on Nov 01, 2019 at 19:24 UTC |