title: PHPWord: Creating an Arabic right to left word document
body: <p>I'm trying to use <a href="http://phpword.codeplex.com/" rel="nofollow">PHPWord</a> to create a word document that will include dynamic data pulled out from a MySQL database. The database has MySQL charset: <code>UTF-8 Unicode</code> (utf8)
  MySQL connection collation: <code>utf8_unicode_ci</code> and so does the table fields.</p>
  
  <p>Data is stored and previewed fine in HTML, however when creating the document with the arabic variables, the output in Word looks like <code>Ø£Ø­ÙØ¯ ÙØ¨Ø§Ø±Ù Ø§ÙÙØ±Ù</code>.</p>
  
  <pre><code>$PHPWord = new PHPWord();
  $document = $PHPWord-&gt;loadTemplate('templates/.../wtvr.docx');
  $document-&gt;setValue('name', $name);
  $document-&gt;setValue('overall_percent_100', $overall_percent_100);
  $document-&gt;save('Individual Report - ' . $name . '.docx');
  </code></pre>
  
  <p>Is there anyway to fix that?</p>