title: how to create xml document on a remote sever using php with utf-8 encoding
body: <p>I have written a php program to create an XML file on the server with UTF-8 encoding. But the resulting XML file always gives question marks (?????) instead of unicode characters. But in the local server, result was proper. What may be the problem?</p>
  
  <p>here is the php code i have used: </p>
  
  <pre><code>&lt;?php
  $DOMObject = new DOMDocument("1.0", "UTF-8");
  $list = $DOMObject-&gt;createElement("list");
  $DOMObject-&gt;appendChild($list);
  $rec = $DOMObject-&gt;createElement("rec");
  $list-&gt;appendChild($rec);
  $id = $DOMObject-&gt;createElement("id");
  $rec-&gt;appendChild($id);
  $idText = $DOMObject-&gt;createTextNode("mnkarassery");
  $id-&gt;appendChild($idText);
  $name = $DOMObject-&gt;createElement("name");
  $rec-&gt;appendChild($name);
  $nameText = $DOMObject-&gt;createTextNode("എം.എൻ.കാരശ്ശേരി");
  $name-&gt;appendChild($nameText);
  $DOMObject-&gt;save('writers1.xml');
  $DOMObject-&gt;saveXML();
  ?&gt;
  </code></pre>