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.
I t
The MimeMessage.setSubject(String subject, String charset) method will solve the problem: mimeMsg.setSubject(subject,"utf-8");
This is an updated link. Previous documentation link was dismissed by Oracle after Oracle bought the Sun.