Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: XML::Simple throws decode error in encode.pm

by almut (Canon)
on Aug 04, 2010 at 20:59 UTC ( #852969=note: print w/ replies, xml ) Need Help??


in reply to Re^2: XML::Simple throws decode error in encode.pm
in thread XML::Simple throws decode error in encode.pm

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


Comment on Re^3: XML::Simple throws decode error in encode.pm
Select or Download Code
Re^4: XML::Simple throws decode error in encode.pm
by Anonymous Monk on Aug 04, 2010 at 21:14 UTC

    Works like a charm! Thanks!

Re^4: XML::Simple throws decode error in encode.pm
by Anonymous Monk on Aug 05, 2010 at 17:11 UTC

    Works great now! Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-08-23 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls