Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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
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
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 taking refuge in the Monastery: (7)
As of 2015-07-30 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls