This content has been marked as final. Show 6 replies
In the meantime, I had to solve my problem one way or another, and the only thing that came up to my mind was to use JavaMail API.
It is not quite what I was hoping for, because it doesn't provide opening of default e-mail client on local machine, but at least it can send e-mail with Unicode characters in the subjects line, recipient addresses, etc.
Make a new message using JavaMail and then set it's properties in a fairly simple manner, like this:
I'd still like to see if there are any suggestions on how to do the similar thing with java.awt.Desktop.
message.setSubject( MimeUtility.encodeText("+ ... some Unicode text with Cyrillic symbols ... +", "UTF-8", "B") );
I exactly followed your code, however, the subject still shows unicode, not the Chinese I expected.
message.setSubject(MimeUtility.encodeText("亲爱的用户", "UTF-8", "B"));
My suggestion would be
I tried that before and it did not work. The subject still shows unicode, not Chinese.
Any other suggestions?
My suggestion would be to have posted the question in the JavaMail forum in the first place. However now my suggestion is to go over there and search for answers.
Tried and could not find any answers. If you find one, please let me know. Thanks,