in reply to Lost in encoding in Twig
So my question : who has corrupted Clémence ?As far as I can tell, XML::Twig::print did. It seems to me (from your post) the problem goes away with keep_encoding => 1?
Since you didn't use utf8; in your code, Clémence is not utf-8 (for Perl's purposes). Printing it to utf-8 filehandle will wreck Clémence.sub print { ... if($perl_version > 5.006 && ! $t->{twig_keep_encoding}) { if( grep /useperlio=define/, `$^X -V`) { binmode( $fh || \*STDOUT, ":utf8" ); } } ...
Also I don't understand what utf-8 has to do with Perl 5.018 in particular
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Lost in encoding in Twig
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 | |
by Anonymous Monk on Jan 10, 2015 at 07:37 UTC | |
|