Have try encoding to quoted printable this way:

msg.setSubject(MimeUtility.encodeText(_subject, "UTF-8", "Q"));

http://groups.google.com/group/google-appengine-java/browse_thread/thread/7479beb80a97992f/36156bbdee1b9fa2?lnk=gst&q=encode+subject#36156bbdee1b9fa2

On Aug 26, 3:23 am, Tony <genesoft...@gmail.com> wrote:
> Hello,
>
> I have a problem to dispay the title of email if it includes Chinese.
> I tried:
> [1]
> ...
> String title = "测试标题";
> message.setSubject(title);
> ...
> And
> [2]
> ...
> String title = "测试标题";
> title = MimeUtility.encodeText(title);
> message.setSubject(title);
> ...
>
> Both titles are displayed as "?????????". If the program works in
> Tomcat (without GAE/GWT), the 2nd is ok.
>
> Please let me know, if you have any idea to handle the title
> localization issue?
>
> Thanks in advance,
> Tony

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to