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
> 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
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
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
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
> 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
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
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