I am using xslt to transform my xml source file into a soap request which I then pass to a web-service. The problem I'm running into is that no matter what I do, the output of the xslt is tagged as utf-16, and the web service only seems to like utf-8. How can I make sure the output is tagged as utf-8?
Here is the header of my xslt file:
Eventhough I am specifying UTF-8 in the output element, my output always has the following header.
Here is the header of my xslt file:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:output method='xml' version='1.0' encoding='UTF-8' indent='yes' />
Code:
<?xml version="1.0" encoding="utf-16"?>