title: How to export to excel in Arabic?
body: <p>I am trying to export Arabic data from MySQL to Excel, but I get weird symbols, 
  like this: ÙƒØ±Ø©</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?php
  $conn = new mysqli('localhost', 'root', '');
  mysqli_select_db($conn, 'crud');
  mysqli_query($conn, "set names 'utf8'");
  $sql = "SELECT `userid`,`first_name`,`last_name` FROM `employee`";
  $setRec = mysqli_query($conn, $sql);
  $columnHeader = '';
  $columnHeader = "User Id" . "\t" . "First Name" . "\t" . "Last Name" . "\t";
  $setData = '';
  while ($rec = mysqli_fetch_row($setRec)) {
  $rowData = '';
  foreach ($rec as $value) {
  $value = '"' . $value . '"' . "\t";
  $rowData .= $value;
  }
  $setData .= trim($rowData) . "\n";
  }
  header("Content-type: application/octet-stream");
  header("Content-Disposition: attachment; filename=User_Detail.xls");
  header("Pragma: no-cache");
  header("Expires: 0");
  echo ucwords($columnHeader) . "\n" . $setData . "\n";
  ?&gt; 
  </code></pre>
  
  <p>How can I properly export this data?</p>