I've got a pretty basic xml, for which I made an interface through the automatic generator in delphi 7. This was working fine, until I ran into some odd characters being sent my way. As an example:
<AfasGetConnector>
<Medewerker>
<Afstortnummer>0032123</Afstortnummer>
<Naam>Wiaëröóíïúáäâtè</Naam>
</Medewerker>
</AfasGetConnector>
Pulling this into Firefox / IE will quickly tell you that there's illegal characters in it. To be exact: ë, é and ö will not be accepted. The rest however, are perfectly fine. (Even the capital versions Ë, É and Ö are fine)
This confuses me. Why would those 3 be illegal, but "ä" and most others be fine? Are there any others I should worry about?
The whole block is given to me in a CDATA,. so the initial transfer goes fine,. After that however, I need to pick through the individual "Medewerker" elements from the xml,. which are not encapsulated in the CDATA. Hence the issue.
WideStringto hold your strings and use a XML parser which supports Unicode (e.g. MSXML) there is no problem.IXMLDocument/IXMLNodeinterfaces, which support Unicode via aDOMStringdata type (an alias forWideString/UnicodeString), and always has.