You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Joseph Shraibman <jk...@selectacast.net> on 2003/01/15 23:14:31 UTC
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@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: encoding and saxparser
Posted by Paul Libbrecht <pa...@activemath.org>.
On Mercredi, janv 15, 2003, at 23:14 Europe/Paris, Joseph Shraibman
wrote:
> 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?
What is the not correctly that you mean ??
Oh, and which parser are you using...
Paul
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org