Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Lost in encoding in Twig

by pcouderc (Monk)
on Jan 09, 2015 at 11:54 UTC ( #1112723=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #
    ...
    $root->set_att( 'fille' => 'clémence');
    open(PF, "> out.xml") or die "can't open file $!\n";
    $twig->print(\*PF);
    
  2. or download this
    cat out.xml                                                    
    <?xml version="1.0" encoding="UTF-8"?>
    <myxml fille="clémence"/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1112723]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2020-11-24 23:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?