can't see UTF-8 chars in my outlook
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vineet_vasisth
Posted On:   Wednesday, December 18, 2002 04:56 AM

i, I am trying to send a mail using javax.mail API. I need to see greek and latin chars in my mail. I can do that in my JSP by setting the charset to UTF-8. But when I send a mail composed with UTF code of greek or latin chars it gets repalced with a question mark, when i open the mail in my outlook. Any help would be greatly appreciated.

Re: can't see UTF-8 chars in my outlook

Posted By:   Anonymous  
Posted On:   Wednesday, December 18, 2002 07:04 AM

Hi Vineet,

You need to specify UTF-8 encoding for both the Header and the Content of your emails.

There is a utility class (javax.mail.internet.MimeUtility
) in the JavaMail API that offers methods for encoding messages.

Have a look at the javadoc for this class. You can also find a good description of the MimeUtility class in the Chapter 10 of the JavaMail API Design Specification.

Cheers,

BenoƮt

About | Sitemap | Contact