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

Re: error parsing utf8 chars using XML DOM parser

by Anonymous Monk
on Nov 01, 2011 at 15:10 UTC ( [id://935140]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(my $fh, '>:utf8', 'out.xml') || die "Failed to open file";
    print $fh $str; 
    close($fh) || die "Failed to close file";
    
  2. or download this
    use XML::DOM;
    use open OUT => ':utf8';
    use open ':std';
    # as before...
    print $str;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found