in reply to Unicode XML Parsing Problem
My own Windows app (the one mentioned on my home node) does precisely this.my $parser = XML::LibXML->new(); open my $in, '<:encoding(UTF-16)', $xmlfile or die $!; my $xmltext = do { local $/; <$in> }; close $in; $xmltext =~ s/encoding="Unicode"//i; my $doc = $parser->parse_string($xmltext) or die "Could not process XM +L file $xmlfile";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unicode XML Parsing Problem
by SheridanCat (Pilgrim) on Sep 23, 2005 at 20:35 UTC |