title: How to read utf-8 xml from vbs and get correct character code
body: <p>I'm trying to read xml file from vbs script. Xml is encoded in utf-8 and has appropriate header </p>
  
  <p>From vbs script I use microsoft xmldom parser to read xml:</p>
  
  <pre><code>Dim objXMLDoc
  Set objXMLDoc = CreateObject( "Microsoft.XMLDOM" )
  objXMLDoc.load("vbs_strings.xml")
  </code></pre>
  
  <p>Inside xml I'm trying to write character by code using <code>&amp;#nnn;</code> notation. Then I read this character from vbscript and try to get it's code using <code>Asc()</code> function. For some characters it works fine and read code is equal to one written. But for some characters <code>Asc()</code> always returns code <code>63</code>. What could it be?</p>
  
  <p>Examples:  </p>
  
  <p>If xml contains <code>&lt;section&gt;&amp;#195;&lt;section&gt;</code> and in script I have <code>Section</code> variable for representing this xml node then code:</p>
  
  <pre><code>Asc(Section.Text)
  </code></pre>
  
  <p>will return value 195 and it's <code>ok</code>.</p>
  
  <p>If xml contains <code>&lt;section&gt;&amp;#110;&lt;section&gt;</code> then code:</p>
  
  <pre><code>Asc(Section.Text)
  </code></pre>
  
  <p>will return value 110 and it's <code>ok</code>.</p>
  
  <p>But if xml contains <code>&lt;section&gt;&amp;#130;&lt;section&gt;</code> or <code>&lt;section&gt;&amp;#156;&lt;section&gt;</code> or <code>&lt;section&gt;&amp;#140;&lt;section&gt;</code></p>
  
  <pre><code>Asc(Section.Text)
  </code></pre>
  
  <p>will return value 63 and it's definitely not good.</p>
  
  <p>Do you know why?</p>