title: How do I get Chinese characters into the subject line of an email message?
body: <p>I'm trying to send an email with Chinese/Taiwan characters in the subject line.  The user entered email content shows up correctly in Chinese, but I'm having problems with the subject line.</p>
  
  <p>I'm using Rails 3.0.9 and have it configured to send through my Gmail account right now.  All of that is working, but maybe Google is messing with my subject line? </p>
  
  <p>Here's the code snippet in my mailer:</p>
  
  <pre><code>mail(:to =&gt; lead_email,
       :subject =&gt; "=?utf-8?B?" + Base64.encode64(@club.offers.first.title) + "?=",
       :from =&gt; from_email,
       :content_type =&gt; "text/html; charset=utf-8",
       :reply_to =&gt; 'noreply@buddyreferralsystem.com',
       :content_transfer_encoding =&gt; '8bit'
  ).deliver
  </code></pre>
  
  <h3>and this is what I get in my email headers when it is received.</h3>
  
  <pre><code>Subject: &amp;#26399;&amp;#24453;&amp;#24456;&amp;#24555;&amp;#23601;&amp;#21487;&amp;#20197;&amp;#22312;&amp;#20465;&amp;#27138;&amp;#37096;&amp;#30475;&amp;#21040;&amp;#20320;&amp;#21908;!
  Mime-Version: 1.0
  Content-Type: text/html; charset=UTF-8
  Content-Transfer-Encoding: quoted-printable
  </code></pre>
  
  <p>When I read the email in GMail, I see the non-readable subject line above, but the chinese text in the email content is rendered just fine.  One thing to note is that the Content-Transfer-Encoding seems to be getting changed from the '8bit' that I set to 'quoted-printable'.</p>
  
  <p>How should I get Chinese characters to show up in the subject line instead of the <code>&amp;#26399;</code> ?</p>