Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: XML::Simple Non-UTF-8 characters won't read

by grantm (Parson)
on Feb 02, 2011 at 00:04 UTC ( [id://885629]=note: print w/replies, xml ) Need Help??


in reply to XML::Simple Non-UTF-8 characters won't read

In addition to ikegami's excellent description of what is wrong with your XML input, another option to consider is to pass all input through Encoding::FixLatin before passing it to XML::Simple. This will ensure that the characters are UTF-8 encoded by the time they get to the parser. This assumes that your input is ASCII/Latin-1/CP1252/UTF-8 or some mixture thereof.

  • Comment on Re: XML::Simple Non-UTF-8 characters won't read

Replies are listed 'Best First'.
Re^2: XML::Simple Non-UTF-8 characters won't read
by danjkool35 (Initiate) on Feb 02, 2011 at 12:59 UTC
    Thanks for a great suggestion. This should solve my problem.

Log In?
Username:
Password:

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

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

    No recent polls found