Re: How to change encoding in XML2reader --update

2005-01-12 Thread David ---
Yes that's right, it's UTF-8 but i want to be able to transcode it to ISO-8859-1. You're right i'm using the XMLString::transcode() method and i'm guess from what you say that it's not the best way to do it. That's how the orginal XML file looks like: Moléculaire What shall i use than to tr

Re: How to change encoding in XML2reader --update

2005-01-12 Thread david_n_bertoni
> 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 Moléculaire It's very very unlikely the parser cannot transcode d

Re: How to change encoding in XML2reader --update

2005-01-12 Thread David ---
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 Moléculaire When i display the tag name its empty so i assume that the parse

Re: How to change encoding in XML2reader

2005-01-12 Thread David ---
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

RE: How to change encoding in XML2reader

2005-01-12 Thread Bovy, Stephen J
Subject: Re: How to change encoding in XML2reader > 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 a

Re: How to change encoding in XML2reader

2005-01-12 Thread Jeroen N. Witmond
> 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) > You cannot change the encoding that is used by the API to r

Re: How to change encoding in XML2reader

2005-01-12 Thread Alberto Massari
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

How to change encoding in XML2reader

2005-01-12 Thread David ---
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) thanks, david a piece of the code below try { c_parser