Hello Urayoan,
xml.SaveEncoding = 'UTF-8' where xml is the XFile object in the procedure.
yes, thats why I set that in the first block.
But that was apparently not the reason. What I found out is, that the server gets the correct string, but when this server is set to send this string, it gets garbeled.
It happens in the BuildResult ROUTINE.
packet.setvalue('<?xml version="1.0" encoding="utf-8"?><13,10>') Right after the StringTheory-object
packet is completed, I do a packet.Replace(...) for all critical character. See attached screenshot.
At least as long, as I learned to understand, what happens here and how I can solve it in a better and cleaner way.
Thanks so far, and I will bother Bruce both on Wednesday and Thursday.
Bye
Wolfgang