When I dump xml using Simple::XML
I end up with strings that contain escaped characters such as \x{e6}
. Here is an example
#!/usr/bin/perl
use Data::Dumper;
use Encode;
$s="sel\x{e6}re";
decode_utf8($s);
print Dumper $s;
outputs
$VAR1 = 'sel�re';
Question
How can I get the weird character into UTF-8?
Update
Here is the full xml output. http://pastebin.com/Sitm01kh
Update 2
As pointed out in the comments, the XML is fine, but the problem comes when I
my $ref = XMLin($xml, ForceArray => 1, KeyAttr => { Element => 'Id' });
print Dumper $ref;