Perl: the Markov chain saw | |
PerlMonks |
Re: XML::Simple and ISO-8859-1 encoding buggy?by cavac (Parson) |
on May 27, 2021 at 07:11 UTC ( [id://11133105]=note: print w/replies, xml ) | Need Help?? |
After some testing I assume that XML::Simple simply does not care about the declared encoding because the following works. Frankly, i have seen enough XML files where the declared encoding is not matching the actual encoding. While your case might or might not be an XML::Simple problem, trusting the declared encoding is not much better...
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
In Section
Seekers of Perl Wisdom
|
|