in reply to Encode throws "Wide character in subroutine entry" when using XML::Simple
Try this (untested):
use strict; use warnings; use autodie; use XML::Simple; local $XML::Simple::PREFERRED_PARSER = 'XML::Parser'; open my $fh, '<:encoding(UTF-8)', $file; $xml->XMLin( $fh, ForceArray => ['map'], KeyAttr => {}, );
Just a thought... But see 850187.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Encode throws "Wide character in subroutine entry" when using XML::Simple
by ikegami (Patriarch) on Dec 12, 2010 at 00:17 UTC | |
by Jim (Curate) on Dec 12, 2010 at 00:39 UTC | |
by ikegami (Patriarch) on Dec 12, 2010 at 01:05 UTC | |
by nglenn (Beadle) on Dec 12, 2010 at 01:36 UTC | |
by ikegami (Patriarch) on Dec 12, 2010 at 02:48 UTC | |
by nglenn (Beadle) on Dec 13, 2010 at 18:14 UTC | |
by ikegami (Patriarch) on Dec 14, 2010 at 00:31 UTC |