http://www.perlmonks.org?node_id=853420


in reply to Re^2: XML:: DOM and Accented Characters
in thread XML:: DOM and Accented Characters

What exactly is the problem, does it still write e9 instead of c3 a9? (hard to believe that this would be different on Windows...)

Maybe you need to add a BOM?

open my $fh, ">:utf8", "accentTestOutPut.xml" or die $!; print $fh "\x{feff}"; # BOM $doc->print($fh);