You should encode subject if using non-ASCII: msg.setSubject(MimeUtility.encodeText(_subject, "UTF-8", "Q"));
On Jul 12, 9:03 pm, Pieter Coucke <[email protected]> wrote: > I can only confirm I see the same issue when sending e-mail with a German ü > in the subject. I haven't found a solution yet. > > > > > > On Mon, Jul 12, 2010 at 3:04 PM, Marc Hacker <[email protected]> wrote: > > 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]<google-appengine-java%2B > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > Pieter Coucke > Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be -- 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.
