XML UTF-16 not working, generated XSD is always for UTF-8

0
Hi everyone, I am trying to read the contents of an XML file which is UTF-16 encoded. When I generate an XSD for it online, the generated XSD is UTF-8 encoded. When I use it for the XML file it doesn’t work. When I change the number from 16 to 8 in the XML file then it works fine. How can I resolve this issue as I can not manually change this number everytime when I want to use an XML file. Any ideas? Thanks
asked
2 answers
0

This formatter allows you to choose that https://www.freeformatter.com/xsd-generator.html

answered
0

I think you first need to pass the UTF-16 string to a Java action to transform it to UTF-8 first and give that string back. Then you could process that converted string using the standard Mendix tooling.

Regards,

Ronald

 

answered