pcouderc has asked for the wisdom of the Perl Monks concerning the following question:
When I use :
I get :#!/usr/bin/perl # use strict; use XML::Twig; #my $twig=XML::Twig->new(pretty_print => 'indented', keep_encoding => +1); my $twig=XML::Twig->new(pretty_print => 'indented'); $twig->parse( '<?xml version="1.0" encoding="UTF-8"?><myxml/>'); my $root= $twig->root; $root->set_att( 'fille' => 'clémence'); open(PF, "> out.xml") or die "can't open file $!\n"; $twig->print(\*PF);
So my question : who has corrupted Clémence ? What have the done her? I know that this subject has soon occured here but without a clear answer.cat out.xml <?xml version="1.0" encoding="UTF-8"?> <myxml fille="clémence"/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Lost in encoding in Twig
by hippo (Bishop) on Jan 09, 2015 at 12:17 UTC | |
by Anonymous Monk on Jan 09, 2015 at 13:12 UTC | |
by pcouderc (Monk) on Jan 09, 2015 at 13:37 UTC | |
by hippo (Bishop) on Jan 09, 2015 at 13:58 UTC | |
by pcouderc (Monk) on Jan 09, 2015 at 14:59 UTC | |
| |
Re: Lost in encoding in Twig
by Krambambuli (Curate) on Jan 09, 2015 at 16:46 UTC | |
by pcouderc (Monk) on Jan 10, 2015 at 07:13 UTC | |
Re: Lost in encoding in Twig
by Anonymous Monk on Jan 09, 2015 at 14:22 UTC | |
by pcouderc (Monk) on Jan 09, 2015 at 15:03 UTC | |
by Anonymous Monk on Jan 09, 2015 at 15:21 UTC | |
by pcouderc (Monk) on Jan 09, 2015 at 22:32 UTC | |
by pcouderc (Monk) on Jan 10, 2015 at 06:53 UTC | |
|
Back to
Seekers of Perl Wisdom