Hi Wentao,
I guess that the original XML had an encoding declaration that is
incompatible with the Chinese character you inserted, or that the
editor you used to insert it ended up saving the XML in a format
different from the encoding declaration.
E.g. you XML starts with <?xml version="1.0" encoding="utf-8"?> but
you used notepad to change it, and it saved it using Big-5
Alberto
At 11.40 20/07/2007 -0400, Wentao Deng wrote:
Hi,
I put a Chinese character into the XML file, and use
const XMLCh* xvalue = personNoteNode->getFirstChild()->getNodeValue()
to get the string.
The begining of the string is English, and in the memory they are
correctly represented as wide chars.
But the last Chinese character is represented as "3f00", which is a
wide '?'.
So the information has been lost after this statement, I think.
System is windows XP pro, and Chinese characters can be correctly
displayed in other applications.
Regards,
Wentao