Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: UTF-8 and XML::LibXML

by choroba (Cardinal)
on Nov 26, 2019 at 12:56 UTC ( [id://11109252]=note: print w/replies, xml ) Need Help??


in reply to Re^4: UTF-8 and XML::LibXML
in thread UTF-8 and XML::LibXML

You're not putting any data in. You're creating the XML using bytes, you're getting decoded data back from a method, exactly as documented.

This is what putting decoded data in means:

my ($container) = $dom->findnodes('/container'); my $n2 = $container->appendChild('XML::LibXML::Element'->new('node2')) +; $n2->appendText("\N{LATIN CAPITAL LETTER U WITH ACUTE}"); binmode *STDOUT, ':encoding(UTF-8)'; print $dom;

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found