title: PHP mailer with encoding problem in ISO-2022-JP
body: <p>I have a email function need to send a email to both client and customer, and I have to encode both subject and body to specific character encoding which is "ISO-2022-JP".
  And here's my problem:</p>
  
  <pre><code>$subject = "=?iso-2022-jp?B?".base64_encode(mb_convert_encoding($subject,"JIS","UTF-8"))."?=";
  $mail = new PHPMailer(true);
  //服务器配置
  $mail-&gt;CharSet ="ISO-2022-JP";   
  $mail-&gt;SMTPDebug = 0; 
  $mail-&gt;isSMTP(); 
  $mail-&gt;SMTPAuth = true;    
  $mail-&gt;Subject = $subject;
  </code></pre>
  
  <p>When I check my mail box and the email title which I've received was:</p>
  
  <pre><code>=?iso-2022-jp?B?GyRCJVshPCVgJVohPCU4JCskaSROJCpMZCQkOWckbyQ7GyhC?=
  </code></pre>
  
  <p>I don't know how to fix it.</p>