Skip to content

XML error – XML value cannot be parsed: ‘There is no Unicode byte order mark. Cannot switch to Unicode.’

Today, I tried to convert an XML document to JSON, and found a new error that I don’t have seen earlier:
 
XML value cannot be parsed: ‘There is no Unicode byte order mark. Cannot switch to Unicode.’
 
This is due to encoding that does match the content anymore (for a reason unknown), so I decided to just replace it away:
 
 
image-3.png
 
 
replace(outputs(‘Get_file_content_|_xmlfile’)?[‘body’],’encoding=”utf-16″‘,”)
 
 

After getting rid of the encoding tag in the XML definition, all is good. 

 
 



Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *