>And how do you initialize your wstring according that transcode only return
>char*?
XMLCh and wchar_t are both Unicode wide strings. sizeof(XMLCh) should be
equal to sizeof(wchar_t). Transcoding is not necessary since they are both
the same format. So I simply initialize the std::wstring with the XMLCh*
without any transcoding. e.g.:
void blah::characters(const XMLCh *const chars, const unsigned int length)
{
std::wstring theWString(chars,length);
...
}
-Sonny
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]