title: IMAP Fetch Encoding
body: <p>I'm trying to fetch some email info from gmail using imap like this</p>
  
  <pre><code>"(BODY.PEEK[HEADER.FIELDS (subject from date)] X-GM-MSGID X-GM-LABELS X-GM-THRID)"
  </code></pre>
  
  <p>The problem is that it doesn't work well with special and accented characters. For example,</p>
  
  <pre><code>Stéphane Maniaci
  </code></pre>
  
  <p>is rendered as </p>
  
  <pre><code>=?ISO-8859-1?Q?St=E9phane_Maniaci?=
  </code></pre>
  
  <p>How do I tell Gmail to return the strings with an encoding of my choice, say I want Charset to be UTF-8.</p>
  
  <p>How to adjust that in the IMAP command I mentioned above?</p>