That's odd, since the document can be parsed if I remove the encoding directive and the single Unicode character I added to test it. Any ideas for finding the error in the document that only shows up when I try to use UTF-16 encoding?
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, April 01, 2002 1:49 PM > To: [EMAIL PROTECTED] > Subject: Re: UTF-16 not supported? > > > Hi Eric, > > You're actually seeing one of Xerces1's less helpful > eccentricities. When it reads a document that claims to be > in UTF-16 but which has some problem, Xerces1 tended to claim > not to support the encoding--instead of pointing out where > the error is. > > I believe this behaviour no longer exists in Xerces 2. But > the basic problem very probably lies in your document. > > Cheers, > Neil > Neil Graham > XML Parser Development > IBM Toronto Lab > Phone: 905-413-3519, T/L 969-3519 > E-mail: [EMAIL PROTECTED] > > > > > > > "Eric Hodges" > > <[EMAIL PROTECTED] To: > <[EMAIL PROTECTED]> > etech.com> cc: > > Subject: > UTF-16 not supported? > 04/01/2002 02:48 PM > > Please respond to > > xerces-j-user > > > > > > > > > When I ask Xerces to parse a document starting with this line: > > <?xml version="1.0" encoding="UTF-16" ?> > > It throws this exception: > > org.xml.sax.SAXParseException: The encoding "UTF-16" is not supported. > at > org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) > > > I thought UTF-16 was supposed to be supported by all XML > parsers, wasn't it? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
