As already hinted at, XMLin() doesn't like already decoded input; it wants bytes/octets. IOW, simply open the file as
open my $etax, '<', $input or ... # ^ no :utf8
In reply to Re^3: XML::Simple throws decode error in encode.pm
by almut
in thread XML::Simple throws decode error in encode.pm
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |