UTF-16 encoding problem while parsing a xml document using sun's parser
Hi guys,
we are using sun's javax parser for xml parsing.when the xml document contains
encoding ="UTF-16" then we get a unsupported encoding exception.we have also
tried to set the encoding to "UTF-16" using the setEncoding method of InputSource
,and have also tried to set the encoding in a String as follows.
String(byte[] bytes, String enc)
Construct's a new String by converting the specified array of bytes using
the specified character encoding.
please provide a solution at the earliest.
thanks