Subject: | Doesn't support UTF-16 |
Doesn't support UTF-16le and UTF-16be.
$ perl -MEncode -MXML::Fast -e'die if xml2hash(encode("UTF-16le",
qq{\x{FEFF}<?xml version="1.0"
encoding="UTF-16"?><root>abc</root>}))->{root} ne "abc";'
Bad document end, state = LT_OPEN at .../XML/Fast.pm line 28.
$ perl -MEncode -MXML::Fast -e'die if xml2hash(encode("UTF-16le",
qq{\x{FEFF}<?xml version="1.0"
encoding="UTF-16le"?><root>abc</root>}))->{root} ne "abc";'
Bad document end, state = LT_OPEN at .../XML/Fast.pm line 28.
$ perl -MEncode -MXML::Fast -e'die if xml2hash(encode("UTF-16be",
qq{\x{FEFF}<?xml version="1.0"
encoding="UTF-16"?><root>abc</root>}))->{root} ne "abc";'
Died at -e line 1.
$ perl -MEncode -MXML::Fast -e'die if xml2hash(encode("UTF-16be",
qq{\x{FEFF}<?xml version="1.0"
encoding="UTF-16be"?><root>abc</root>}))->{root} ne "abc";'
Died at -e line 1.
It surely doesn't support UTF-32 either.