Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by almut (Canon)
on Aug 04, 2010 at 20:59 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://852969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-23 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found