title: Accent support for mails in Spring Framework
body: <p>I'm sending a mail with the word Òmnium (see the accent) in the sender using Spring Framework.</p>
  
  <p>The code is the one I found for Spring:</p>
  
  <pre><code>    org.springframework.mail.javamail.JavaMailSenderImpl sender = sender();
      javax.mail.internet.MimeMessage msg = sender.createMimeMessage();
      MimeMessageHelper helper = new MimeMessageHelper(msg, multipart, "UTF-8");
      helper.setFrom(from);
      ...
      sender.send(msg);
  </code></pre>
  
  <p>I've tried two approaches:</p>
  
  <ol>
  <li>No handling to from</li>
  <li>Encode with : <code>MimeUtility.encodeText(from)</code> or <code>MimeUtility.encodeText(from, "UTF-8", null)</code></li>
  </ol>
  
  <p>The first case gives me a question mark. The second one gives a <code>=?UTF-8?Q?=C3=92mnium</code>, as seen in Thunderbird.</p>
  
  <p>What is the right approach?</p>