[Expat-discuss] UTF-16
Karl Waclawek
karl at waclawek.net
Fri Feb 28 00:17:16 EST 2003
> hello,
> I have an UTF-16 XML file saved as UTF-16. My
> application in VC++ reads the file into a wchar_t*
> buffer(UNICODE, XML_UNICODE_WCHAR_T macros r defined).
> However the XML parser() fn takes a const char * ptr
> to the buffer. How can I supply my whcar_t* buffer to
> char * buffer. I tried typecasting, but the parsing
> failed. Any solutions?
It should work. Have a look at xmlwf.c for how it is done.
Karl
More information about the Expat-discuss
mailing list