The XMLDecoderFactory class does not support decoding
of BOM'ed UTF-16 XML.
Selection of the decoder to be used should be deferred
on encodings marked "utf-16" until the bom has been read.
The faq at
lists a table of which byte sequences that correspond
to which enconding (utf-8, utf-16le, utf-16be,
Here's an exception which got thrown while trying to
decode a n xml with "utf-16" encoding:
java.io.UnsupportedEncodingException: Encoding 'utf-16'
at com.bluecast.xml.XMLStreamReader.reset(Unknown Source)
at com.bluecast.xml.DocumentEntity.open(Unknown Source)
at com.bluecast.xml.PiccoloLexer.reset(Unknown Source)
at com.bluecast.xml.Piccolo.parse(Unknown Source)
Log in to post a comment.