The string is in windows-1252 encoding. I just want to be able to get char* to the string so that I can do things with the text in my application. But there is no way to convert XMLCh* to char* without doing some transcoding.
And that is my question, what do I need to transcode it to? All I need is the char *. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 12:05 PM To: [email protected] Subject: RE: XML decoding question > So, I have XML that is in windows-1252. When parsing this > document Xerces is calling startElement() method which takes > XMLCh* as a parameter. > > I need to be able to convert this to a char*. Since the > XMLString::transcode() function is returning garbage, I need > to create my own transcoder. What do I need to transcode it to? Why do you need to convert it from UTF-16 to something else? What do you plan to do with the converted string? > If I am to call the transcodeTo or transcodeFrom functions, I need > to know the number of XMLChs in the input parameter. How can I know > the length of XMLCh *? They are null-terminated, so use XMLString::stringLen(). Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
