Hello,
I am trying to transcode unicode © into the native code page (ie -
ascii, in this case). I am reading the XMLCh * in from SAX methods (I'm
inheriting DocumentHandler and using my class as the SAXParser's Doc
Handler).
In my 'void characters( const XMLCh* const chars, const unsigned int
length )' I read in the string
'The XML markup and added material in this version are Copyright ©
1998 Jon Bosak'
When I transcode the XMLCh*, I get back
'The XML markup and added material in this version are Copyright'
and the rest of the string is lost; it's not even in characters seen in
the future!
When I do the transcoding outside of the SAXParser (just make a const char
* and play with it), the results are correct.
I am transoding by doing this:
given const XMLCh *const string,
DOMString s( string );
cout << s.transcode();
I've also tried
cout << XMLString::transcode( string );
but that just prints out garbage.
Any ideas?
Thank you,
Matt
--
Matt Leinhos
[EMAIL PROTECTED]
"What's that you say, Mrs. Robinson? Joltin' Joe has left and gone away."
-- Simon and Garfunkel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]