I try to put data from SAP via RFC into an xml document.
The Problem is that I not get a valid xml file, because the german special caracters like ä or ß are not correct encoded.
My last try was to use the pub.sap.rfc:encode to encode the data into UTF-8. Here for I set the encoding param to “utf-8”. But I still get no valid xml File.
The other think I try was to encode the xml-data with pub.string.stringToByte (encoding= utf-8) and than pub.string:byteToString (encoding = utf-8).
But both ways give me no valid xml File.
Have anyone an idea?