title: arabic language in xml
body: <p>I have this code:<br />
  <strong>html code:</strong></p>
  
  <pre><code>&lt;script&gt;
  function loadXMLDoc(filename)
  {
  if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
  else
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xhttp.open("GET",filename,false);
  xhttp.send();
  return xhttp.responseXML;
  }
  var xmlDoc = loadXMLDoc('users.xml');
  var x = xmlDoc.getElementsByTagName('usr');
  document.write(x.length);
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>xml code:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;users xmlns="http://localhost" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost users.xsd"&gt;
  &lt;usr&gt;&lt;age&gt;25&lt;/age&gt;&lt;country&gt;الاردن&lt;/country&gt;&lt;/usr&gt;
  &lt;usr&gt;&lt;age&gt;30&lt;/age&gt;&lt;country&gt;مصر&lt;/country&gt;&lt;/usr&gt;
  &lt;/users&gt;
  </code></pre>
  
  <p>And I want to include the html code in another html document like this:<br />
  <strong>html code:</strong></p>
  
  <pre><code>&lt;!DOCTYPE html unicode="utf-8"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
  include 'users.html';
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>the output of the javascript code is: 0 while it should be 2 and if I replace the arabic text in the xml document with english text the output become 2.<br />
  Why is the arabic text breaking the code?</p>