title: Javamail changing charset of subject line
body: <p>I am using Javamail (javax.mail) to send mails. I successfully adjusted contents of my mail as utf-8. However I could not set subject line as a utf-8 encoded string.</p>
  <p>I tried even</p>
  <pre><code>mail.setSubject(new String(subject.getBytes(&quot;utf-8&quot;), &quot;utf-8&quot;));
  </code></pre>
  <p>on subject however it still sends as Cp1252. Example headers from mail are given below:</p>
  <p>Any ideas?</p>
  <p><a href="https://i.stack.imgur.com/7nsfE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7nsfE.png" alt="example from mail headers" /></a><br />
  <sub>(source: <a href="http://m.friendfeed-media.com/a328a80db12f3c17a8aed06be106045354355abf" rel="nofollow noreferrer">friendfeed-media.com</a>)</sub></p>