encoding and saxparser 2003-01-15 - By neilg@(protected)
Hi Joseph,
That's a good question; its answer will depend at least on what version of Xerces you're using and exactly what the SAXParser is doing.
Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: neilg@(protected)
|---------+----------------------------> | | Joseph Shraibman | | | <jks@(protected)| | | net> | | | | | | 01/15/2003 05:14 | | | PM | | | Please respond to| | | xerces-j-user | | | | |---------+----------------------------> >---------------------------------------------------------------------------- -----------------------------------------------------------------| | | | To: general@(protected), xerces-j-user@(protected) | | cc: | | Subject: encoding and saxparser | | | | | >---------------------------------------------------------------------------- -----------------------------------------------------------------|
I have code that looks like this:
SAXParser sp = new SAXParser(); sp.setContentHandler(tch); //tch is my content handler InputSource is = null; is = new InputSource("/tmp/temp1.xml"); sp.parse(is);
My xml starts with <?xml version="1.0" encoding="ISO-8859-1"?> DOMParser handles the encoding properly, but SAXParser does not. So how do I handle this?
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|