Re: How to transcode an unicode stream

2004-06-22 Thread Sean Kelly
On Mon, 21 Jun 2004, Andre Stock wrote: > > Is it possible to change the typedef of XMLCh* to wchar_t*,so that i can > parse the unicode stream? If this is possible, where can i find the typedef > of XMLCh*? Yes it is. This typedef is in the compiler/platform header files. But you may not want t

RE: How to transcode an unicode stream

2004-06-21 Thread david_n_bertoni
> Why do all that? If XMLCh is not a typedef for wchar_t > on your platform just cast the string to wchar_t*. Or am > I missing some subtlety? On some platforms wchar_t is a 32-bit integral, while on others it's a 16-bit integral, and there are very few platforms where wchar_t contains Unicode cod

Re: How to transcode an unicode stream

2004-06-21 Thread Andre Stock
> Xerces has a version of XMLString::transcode that goes from XMLCh* to > const > char* and another one that goes from const char* to XMLCh*. > Also, on Windows, XMLCh* can be treated like a wchar_t*, as they are the > same UTF-16 data. > > Alberto Didn`t know that XMLCh* is treated as wchar_t*

RE: How to transcode an unicode stream

2004-06-21 Thread Tony Dodd
Why do all that? If XMLCh is not a typedef for wchar_t on your platform just cast the string to wchar_t*. Or am I missing some subtlety? >-Original Message- >From: Andre Stock [mailto:[EMAIL PROTECTED] >Sent: 21 June 2004 10:50 >To: [EMAIL PROTECTED] >Subject: Re: How

Re: How to transcode an unicode stream

2004-06-21 Thread Alberto Massari
At 11.49 21/06/2004 +0200, Andre Stock wrote: Do i have to use icu or is there any function to call transforming an wchar_t array to local codepage and vice versa? I thought to transcode the unicode stream to local codepage, call the parser with this local stream and then transcode for example the

Re: How to transcode an unicode stream

2004-06-21 Thread Andre Stock
Do i have to use icu or is there any function to call transforming an wchar_t array to local codepage and vice versa? I thought to transcode the unicode stream to local codepage, call the parser with this local stream and then transcode for example the found elementname back into a wchar_t* in the

Re: How to transcode an unicode stream

2004-06-21 Thread Andre Stock
Is it possible to change the typedef of XMLCh* to wchar_t*,so that i can parse the unicode stream? If this is possible, where can i find the typedef of XMLCh*? > Hi, > need to parse a unicode stream (i`m receiving wchar_t*)and print the > elementnames and corresponding values in unicode again! Whe