I continue to struggle in Xojo with XML containing unicode characters outside the ASCII range.
Xojo sends the following request…
data = socket1.Get("http://"+Host+"/chaos/lookup_Student?"+get, 30)
data = defineEncoding(data, encodings.UTF8)
The database server is sending the following xml…
[quote]<?xml version="1.0" encoding="UTF-8"?>
<rsrchPlan_Equipment></rsrchPlan_Equipment>
[/quote]
If I view data in the debugger I see…
[quote]<?xml version="1.0" encoding="UTF-8"?>
<rsrchPlan_Equipment></rsrchPlan_Equipment>
[/quote]
And, when I pass data to XMLReader…
Dim reader As New myXMLReader
reader.Parse(data)
The reader throws an exception when it hits the ¼ character.
Ok. I can get this all to work with or without wrapping the value in CDATA by encoding the ¼ with ¼
I had hoped that by using CDATA I would not have to encode the ¼ character or any other non ASCII character. I thought that was what CDATA was all about.
I must be missing something pretty simple here.
Thanks,
John