in reply to Re^3: I love XML::Twig
in thread I love XML::Twig
Do you have a test case? I tried a couple of tests and could not reproduce the problem:
perl -MXML::Twig -l -MEncode -e'print Encode::is_utf8( XML::Twig->npar +se( "<d>foo</d>")->root->text)' perl -MXML::Twig -l -MEncode -e'print Encode::is_utf8( XML::Twig->npar +se( qq{<?xml version="1.0" encoding="ISO-8859-1"?><d>foo</d>})->root- +>text)'
Both give me a result of 1
In Section
Meditations