title: setting encoding for attachment in phpmailer
body: <p>I am using phpmailer to send a monthly report.</p>
  
  <p>It includes the € sign. Thus I need to set encoding to utf-8.
  I ran into a problem here.</p>
  
  <p>Without encoding like this:</p>
  
  <pre><code>$mail-&gt;addStringAttachment($csvstring, $fileName);
  </code></pre>
  
  <p>the mail gets sent but in the attachment the € sign does not show up</p>
  
  <p>when I try to add encoding:</p>
  
  <pre><code>$mail-&gt;addStringAttachment($csvstring, $fileName,  "utf-8", "text/csv");
  </code></pre>
  
  <p>The mail is sent but body and attachment are not present.
  I tried looking it up but there seems to be very little documentation.</p>
  
  <p>Am I missing the obvious?</p>