title: Writing UTF8 in .dat file from PHP script
body: <p>I have problem writing utf8 characters in <code>.dat</code> file from <a href="http://www.planetluc.com/en/scripts_mygallery.php" rel="nofollow">MyGallery</a> (free PHP script).<br>
  The utf8 characters in <code>.dat</code> file are writen like this: </p>
  
  <blockquote>
    <p>Ð�Ð²Ð° Ðµ Ñ�Ð°Ð¼Ð¾ Ð¿Ñ�Ð¾Ð±Ð°</p>
  </blockquote>
  
  <p>When I try to edit <code>.dat</code> file with utf8 character text, I'm able to see the right text in MyGallery, so the problem is with writing in <code>.dat</code> file (reading from the file is ok).</p>
  
  <p>Anny suggestions?</p>