On Google App Engine Java email service, I am trying to send a UTF8
(Hebrew) email subject and body but they arrive (in Gmail) jumbled as
������
Here is my code
MimeMessage msg = new MimeMessage(session);
msg.setSubject(emailSubject, "UTF-8");
Multipart mp = new MimeMultipart();
MimeBodyPart htmlPart = new MimeBodyPart();
htmlPart.setContent(htmlBody, "text/html; charset=UTF-8");
mp.addBodyPart(htmlPart);
msg.setContent(mp);
Transport.send(msg);
I noticed that my browser is treating the email when viewed in Gmail
us Unicode UTF8 so that isn't the problem.
Any ideas please?
Marc
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.