Hello,

I've written some code which use Xerces 2.4.0 and to make it easy I write a method that transcode (using XMLString static method) every XMLCh* to std:string.

Just because it's easiest to use std::string for manipulation, comparison, allocation, ...

But now I discover my XML was containing UNICODE character and when I transcode it to std::string, I lost these character. :o(d
They simply dissapeared , certainly because they are not in the local code page (If I well understand :o)).


Is the only solution to use only XMLCh* string and lose the powerfull using of std::string ?

Maybe the best way, is to write a class which encapsulate XMLCh* and provide the same interface as std::string...
If I remember when I was using Xerces 1.6, no Serializer was provided with and everybody was writing its own serializer... Is it the same for
this encapsultation of XMLCh* string???


Thanks for your help.

Sylvain.


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



Reply via email to