title: 'charset=UTF-16' is missing in the transformation result with MSXML4.0
body: <p>I have some problems about "charset" in the transformation result with different versions of MSXML.</p>
  
  <p>The code below will transform XML to HTML with MSXML3.0</p>
  
  <pre><code>    Dim xmlDoc As New MSXML2.DOMDocument
      xmlDoc.async = False
      Dim strXML As String
      strXML = "&lt;Results&gt;&lt;ElapsedTime&gt;3000&lt;/ElapsedTime&gt;&lt;/Results&gt;"
      xmlDoc.loadXML(strXML)
  
      Dim xslDoc As New MSXML2.FreeThreadedDOMDocument
      xslDoc.async = False
      Dim strXSL As String
      strXSL = "C:\Test.xsl"
      xslDoc.load(strXSL)
  
      Dim xslt As New MSXML2.XSLTemplate
      xslt.stylesheet = xslDoc
  
      Dim xslProc As MSXML2.IXSLProcessor
      xslProc = xslt.createProcessor
      xslProc.input = xmlDoc
      xslProc.transform()
  
      Debug.Print(xslProc.output)
  </code></pre>
  
  <p>================================</p>
  
  <p>The content of "Test.xsl" is,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
    &lt;xsl:template match="Results"&gt;
      &lt;html&gt;
        &lt;head&gt;
          &lt;title&gt;Report&lt;/title&gt;
        &lt;/head&gt;
      &lt;/html&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>===============================</p>
  
  <p>The output is,</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;META http-equiv="Content-Type" content="text/html; charset=UTF-16"&gt;
  &lt;title&gt;Report&lt;/title&gt;
  &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm not sure why the charset is always set as "UTF-16" with MSXML3.0</p>
  
  <p>=========================</p>
  
  <p>Then I change code to use MSXML4, like this,</p>
  
  <pre><code>Dim xmlDoc As New MSXML2.DOMDocument40
  ...
  Dim xslDoc As New MSXML2.FreeThreadedDOMDocument40
  ...
  Dim xslt As New MSXML2.XSLTemplate40
  ...
  </code></pre>
  
  <p>=====================</p>
  
  <p>This time, the output is,</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;META http-equiv="Content-Type" content="text/html"&gt;
  &lt;title&gt;Report&lt;/title&gt;
  &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>No charset is output in MSXML4.0.</p>
  
  <p>=====================</p>
  
  <p>Can you please tell me which one is right?
  Why the differences happens?</p>