xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: encoding and saxparser
Date Thu, 16 Jan 2003 10:58:15 GMT

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


Mime
View raw message