I am working with InfoPath and got a VBscript that creates an XML-file with the following commands:
Set oFS = CreateObject("Scripting.FileSystemObject")
Set objXMLFile = oFS.OpenTextFile(filename,2,true,TristateFalse)
The problem is that the xml-file includes data with "umlauts" and can not be parsed in InfoPath as it is. If I open the xml-file with notepad and save it again with the encoding utf-8 it is working perfect.
Is there a way to create the file with the script that is saved with the UTF-8 encoding?
Please ask if anything is not clear.
Thanks in advance and greetings