in reply to
Re: XML::Twig::flush() and html/xml entities
in thread XML::Twig::flush() and html/xml entities
I can't remember exactly, when and why I invented the call to set_keep_encoding but I think it was due to problems with the encoding of the output.
Maybe those where fixed by inventing the binmode(STDOUT,":utf8") line.
I'm as quite new to Perl as to xml as to utf-8, so development went somewhat on a trial and error basis ;-)
Anyway, it works without set_keep_encoding. Fine :-)
Thanks a lot to anyone helping, esp. you and mirod