Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Mail : Sending Message in Unicode

800394Jan 8 2010 — edited Jan 8 2010
I'm able to send message body in Unicode with the following, which is read correctly when email is received.
msg.setContent("خیر کی بات", "text/html");
but I'm unable to send the subject as a unicode text as following,
msg.setSubject("خیر کی بات", "UTF-8");
the actually raw unicode characters appear instead

Edited by: nkamir on Jan 8, 2010 10:51 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2010
Added on Jan 8 2010
4 comments
705 views