xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Weiß <awe...@informatik.hu-berlin.de>
Subject Re: Reading UNICODE string
Date Thu, 10 Aug 2006 17:50:39 GMT
Mannion, Enda wrote:
> I don't understand, if I can write this Unicode character then why can I
> not read it.

Enda, (sorry, overlooked the comma)

I didn't argue about reading, but about transcoding. After reading, the 
character is hold in XMLCh, the utf-16 representation required by the 
standards. If this character has a representation in the local (libc) 
encoding, xercesc::XMLString::transcode delivers the local representation.

> I read using this code and xmlval = ""
>
> n = node->getFirstChild()->getNodeValue();
> xmlval = xercesc::XMLString::transcode(n);      

Did you check the value of 'n'?

HTH,
			Axel

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Mime
View raw message