Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Perl detect utf8, iso-8859-1 encodingby Your Mother (Archbishop) |
on Jul 24, 2020 at 19:24 UTC ( [id://11119773]=note: print w/replies, xml ) | Need Help?? |
Since no one has said it: detecting for encoding is always broken and should only ever be used as a last resort. If you have any way to either be sure of the encoding or enforce it up front, use it. If at all possible, look further up the chain for a way to do it correctly. Detection is incorrect, even if useful when there are no other options.
In Section
Seekers of Perl Wisdom
|
|