Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

UTF-8 problem parsing XML

by rinceWind (Monsignor)
on Apr 14, 2007 at 14:17 UTC ( #610066=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    # $xml = encode('iso-8859-1', $xml);   (doesn't fix the problem)
    my $data = XMLin($xml);
    print pre(Dump($data)), end_html;
    
  2. or download this
    Content-Type: text/html; charset=ISO-8859-1
    
    ...
                                                                          
    +                        ^
     at /usr/lib/perl5/XML/LibXML/SAX/Parser.pm line 31
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-06-27 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?