Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: , , and XML::Simple

by mojotoad (Monsignor)
on May 02, 2002 at 22:23 UTC ( #163679=note: print w/replies, xml ) Need Help??


in reply to , , and XML::Simple

I have not used XML::Simple, but shouldn't it pay attention to the encoding specified in the XML declaration? For German, you'd want the Latin-2 alphabet:

<?xml version="1.0" encoding="ISO-8859-2">

I gather that XML::Simple can ride on top of XML::Parser. From the XML::Parser docs:

Expat has built-in encodings for: UTF-8, ISO-8859-1, UTF-16, and US-ASCII. Encodings are set either through the XML declaration encoding attribute or through the ProtocolEncoding option to XML::Parser or XML::Parser::Expat. For encodings other than the built-ins, expat calls the function load_encoding in the Expat package with the encoding name. This function looks for a file in the path list @XML::Parser::Expat::Encoding_Path, that matches the lower-cased name with a '.enc' extension. The first one it finds, it loads.

Matt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-05-27 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?