Convert sys_attachment text/xml from "UTF-16 LeBom" coding to "UTF-8"

Dominik11
Tera Contributor

Hi,

we receive an XML file via mail from an external tool (and there, the XML coding cannot be changed so see it as a fix factor). The Coding is UTF-16 Le Bom and for our XML parsing we need it converted to UTF-8.

We will use afterwards the OOTB flow designer action "XML Parser" to continue working with the XML structure.

 

--> Building up an indicidual XML parser is no option, so using the XML Parser is also a fix factor.

 

How can we convert an XML "UTF-16 LeBom" attachment via script to a UTF-8 Payload for the XML parser?

 

Best regards

Dominik

0 REPLIES 0