File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Multilingual Email - help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Multilingual Email - help needed " Watch "Multilingual Email - help needed " New topic

Multilingual Email - help needed

Sowmiya Srinivasa Raghavan

Joined: Mar 09, 2004
Posts: 1
I am working on a project that has a requirement to send emails in different languages.
The email contents are in different property files and my java program has to read these files and send emails. The list of languages that has to be supported are english, european languages and far east asian languages like Chinese, Japanese and Korean. I did some research on Internationalization and found that UTF-8 is the encoding that supports all languages. Infact I did my program using this, and I was able to successfully read an email in all these languages in my lotus notes. But, the same email sent to hotmail and yahoo had some problems. Both, in hotmail and yahoo did not render the text correctly. In addition, hotmail did not allow me to change the encoding to UTF-8, the page reloaded when I did this and it set the encoding back to some European encoding.
So, First of all I would like to know if my approach is correct, i.e. is UTF-8 the solution, or should I use individual encoding for each language.
Even if I use the latter, is there any way for all Email clients(hotmail, yahoo etc) to render the email in the correct language without the user having to manually select the encoding.
Any inputs on this is much appreciated.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

My mailclient is mozilla and handles far eastern charactersets (chinese, japan, corean) - which I can neither distinguish, nor read, but they look nice to me - russian spam (I'm proud to know some characters ) and the western language-encodings.
But when I'm online reading my mail, the Mailprovider shows me unreadable trash.
So if it's your job to send mail, I guess your solution is right.
You aren't responsible for the mail-sites of yahoo and hooya and can not force them, to display the mail the right way, because they put funny ad-frames around the mail, and if the encoding is set in the wrong way, you can't do anything about it.
In other words: The mail protocol is wrapped by the http, and if sophisticated mail-clients display your mail correct - you did your job fine.
Perhaps mail-viewer in the far east are configured to display far-eastern mails correct, and most user will use the right instruments to get their mails read.
I agree. Here's the link:
subject: Multilingual Email - help needed
It's not a secret anymore!