in reply to XML::Simple throws decode error in encode.pm

You are using an external proprietary program. I checked the ETAX Documentation, and I couldn't find any usage documentation. I did find chrBrk which is supposed to be a list of break characters. Again, no documentation for it. Here's the way that I tried it:
#!/usr/bin/perl use strict; use Data::Dumper; use XML::Simple qw(:strict); my $xs = XML::Simple->new(); my $blah = $xs->XMLin('/root/Desktop/txt.xml', ForceArray => 1, KeyAttr => 1); binmode STDOUT, ':utf8'; print Dumper($blah);