xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mannion, Enda" <enda.mann...@hp.com>
Subject RE: Reading UNICODE string
Date Thu, 10 Aug 2006 17:56:42 GMT
Thanks Again Axel,

Can you suggest a solution to me so I can read and write as Unicode?


Enda

-----Original Message-----
From: Axel Weiß [mailto:aweiss@informatik.hu-berlin.de] 
Sent: 10 August 2006 18:51
To: c-dev@xerces.apache.org
Subject: Re: Reading UNICODE string

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


---------------------------------------------------------------------
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