The problem i have is that i need to parse a huge file
that's why i decided to use the sax parser. however
the file contains a particular encoding and the parser
fails to transcode those strings. For example one line
says <name>Moléculaire</name>
When i display the tag name its empty so i assume that
the parsers fails to return the string because of its
encoding. That's why i want to change the encoding to
replace by <name>moléculaire</name> which would be the
correct text.
I'm a bit confused on how to do that. The transcode
method can help ? The correct encoding would be
ISO8859-1
Thanks for any help.
 

 --- David --- <[EMAIL PROTECTED]> a écrit : 
> Ah ok i understand that sax2xmlreader doesn't allow
> for encoding change.
> Shall I use a SaxHandlerParser like the sample file
> Sax2Print then ?
> 
> 
>  --- Alberto Massari <[EMAIL PROTECTED]> a
> écrit
> : 
> > At 19.47 12/01/2005 +0100, David --- wrote:
> > >Hi,
> > >I have implemented a SAX2xmlreader parser.
> > >I don't know how to change the xml encoding. For
> > >instance while reading a file encoded in UTF-8 I
> > would
> > >like to change the output encoding to somethig
> else
> > >(utf-16 or any other)
> > 
> > The SAX2XMLReader reads a file, and doesn't have
> the
> > notion of an output 
> > encoding. You need an output encoding when you
> save
> > a DOM tree into a file, 
> > but that operation is done by the DOMWriter class
> > (that accepts an output 
> > encoding as a parameter)
> > 
> > Alberto 
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> >  
> 
> 
>       
> 
>       
>               
> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace
> de stockage pour vos mails ! 
> Créez votre Yahoo! Mail sur
> http://fr.mail.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  


        

        
                
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to