#19 UTF-16 is not supported (but UTF-16LE and UTF-16BE is)

v1.03
closed-fixed
5
2004-07-11
2003-09-02
No

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

http://www.unicode.org/unicode/faq/utf_bom.html

lists a table of which byte sequences that correspond
to which enconding (utf-8, utf-16le, utf-16be,
utf-32be, utf-32le).

Here's an exception which got thrown while trying to
decode a n xml with "utf-16" encoding:

java.io.UnsupportedEncodingException: Encoding 'utf-16'
not supported
at
com.bluecast.xml.XMLDecoderFactory.createDecoder(Unknown
Source)
at
com.bluecast.xml.XMLStreamReader.setEncoding(Unknown
Source)
at
com.bluecast.xml.XMLStreamReader.processXMLDecl(Unknown
Source)
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)

Discussion

  • Yuval Oren

    Yuval Oren - 2004-07-11

    Logged In: YES
    user_id=479054

    This bug has been fixed in the latest release. If you find it's
    still a problem, please re-open or submit a new bug.

     
  • Yuval Oren

    Yuval Oren - 2004-07-11
    • assigned_to: nobody --> yuvalo
    • status: open --> closed-fixed
     

Log in to post a comment.