title: PHPMailer: Subject name in arabic (non-English) characters
body: <p>I am using <code>PHPMailer</code> API for sending emails. I was wondering how can I send the subject in Arabic (non-English) language</p>
  
  <pre><code>$mail-&gt;CharSet  =  'utf-8';
  $array=  FetchTable('cos');
  $subject =  $_POST['subject'];
  $body    =  $_POST['body'];
  
  $mail = new PHPMailer();
  $mail-&gt;IsSMTP();    
  $mail-&gt;Host     = "host";    
  $mail-&gt;SMTPAuth = true;    
  $mail-&gt;Username = "yaz@enfaltourism.com";   
  $mail-&gt;Password = "*******";  
  $mail-&gt;Port     = "587";  
  $mail-&gt;From     = "yaz@enfaltourism.com";    
  $mail-&gt;FromName = "Enfaltourism";   
  $mail-&gt;Subject  = $subject;     
  $mail-&gt;AddAddress($email); 
  $mail-&gt;Send();`
  </code></pre>
  
  <p>The email is being successfully sent, but the problem is in sending subject in Arabic language. The email message body is displayed properly in Arabic after I set the char encoding but the the subject is being displayed in weird characters</p>
  
  <p>Update</p>
  
  <pre><code>include("../mail/class.phpmailer.php");
  $array=  FetchTable('cos');
  $subject =  $_POST['subject'];
  $body    =  $_POST['body'];
      $mail = new PHPMailer();
      $mail-&gt;CharSet  =  'utf-8';
      $mail-&gt;IsSMTP();    
   $mail-&gt;Host     = "mail.enfaltourism.com";    
   $mail-&gt;SMTPAuth = true;    
   $mail-&gt;Username = "yaz@enfaltourism.com";   
   $mail-&gt;Password = "*****";  
   $mail-&gt;Port     = "587";  
   $mail-&gt;From     = "yaz@enfaltourism.com";    
   $mail-&gt;FromName = "Enfaltourism";   
   $mail-&gt;Subject  = $subject;
  </code></pre>
  
  <p>i fixed as u told but the subject still weird character like this</p>