I'm getting =?ANSI_X3.4-1968?Q? in the subject line of my email with non-ASCII character.
I tried using encodeText from the MimeUtiliy like this but it won't work:
Message msg = new MimeMessage(session);
// -- Set the subject and body text --
msg.setSubject(MimeUtility.encodeText(subject) );
How should I go about?
Thank you
Niklas