Mail contents are not appearing in proper style.

We use to send mail to our clients in various languages(like Russian,Spanish,Turkish).

My problem is that when this mail is received by client they complained to get unreadable characters.

While i do try to send mail for myself i get it in proper characters. I use thunderbird as mail client. When i change my character encoding from western (iso-8859-1) to UTF-8,i get unreadable characters.

I'm using the following code.

MimeMessage msg = new MimeMessage(session);

msg.setText(message, "iso-8859-1", "html");

msg.setFrom(new InternetAddress(from));

Transport.send(msg);

Can anyone to help me out.

Thanks in advance.

[683 byte] By [RajeevSahu_Sahua] at [2007-11-27 6:02:08]
# 1

The charset "iso-8859-1" is not the proper charset to use for all those

languages. Either choose an appropriate charset for each language,

or use "utf-8", which should work for all languages. Note that your html

content may need to specify the charset used in the content as well, as

you would for any html web page in such a language.

bshannona at 2007-7-12 16:43:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...