Subject: | Encoding error with uncommon XML data |
XML-TreePP extract wrong encoding when XML file starts with header using
character \' instead of \" like this example:
<?xml version='1.0' encoding='windows-1250'?>
I hope that this patch will do the work.
P.S: Sory for my English
Subject: | TreePP-0.31.patch |
1068c1068
< my $getcode = ( $args =~ /\s+encoding="(.*?)"/ )[0] or return;
---
> my $getcode = ( $args =~ /\s+encoding=("(.*?)"|'(.*?)')/ )[0] or return;