UTF-16 encoding problem while parsing a xml document using sun's parser
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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL