Yes, you can do that also.

-------------------------------------
Dean Roddey
The Charmed Quark Controller
[EMAIL PROTECTED]
www.charmedquark.com
 

-----Original Message-----
From: Samar Lotia [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 25, 2002 12:45 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: query about Xerces-c SAXReader class with UTF-16 buffer

I believe you can also explicitly set the encoding of your data by using
the
setEncoding() method of InputSource.

Samar Lotia

-----Original Message-----
From: Dean Roddey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 12:51 PM
To: [EMAIL PROTECTED]
Subject: RE: query about Xerces-c SAXReader class with UTF-16 buffer


The memory buffer input class doesn't know anything about characters at
all. It's just a binary bit bucket (say that 10 times fast) that the
parser can pull data from. As long as your encoding="" statement is
correct in the XML data, everything will work out, because that's what
is used to figure out the encoding. Or, for UTF-16, if you put the
correctly formed BOM as the first char, that will work as well, but its
best to indicate the encoding specifically.

-------------------------------------
Dean Roddey
The Charmed Quark Controller
[EMAIL PROTECTED]
www.charmedquark.com
 

-----Original Message-----
From: Karande Samir [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 25, 2002 10:37 AM
To: '[EMAIL PROTECTED]'
Subject: query about Xerces-c SAXReader class with UTF-16 buffer

Hello,
        I am using the SAX2XMLReader class for parsing the XML data that
is
stored in memory buffer using C++. I have looked at the available
documentation and played with MemBufInputSource class. Looks like the
membuf
class supported only UTF-8/Ascii character encoding. What I am really
interested in using UTF-16 buffer and would like the SAX2XMLReader class
to
parse it. 
        Is this possible ? I am using 2.1 v of Xerces-c parser on
Windows
NT.

Thanks,
Samir

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


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




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


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

Reply via email to