Setting the charset for an email in my
java class does not work. The emails get sent with a different charset other than the one in the code resulting in invalid chars.
When a user enters info on a form, an email is sent to a selected destination. When this is done through a weblogic10 server running on Unix, the result in the headers of the email received is:
Content-Type: text/plain; charset="ISO646-US"
Using the same application build, when i send an email from my localhost through a weblogic10 server running on windows, the result in the headers of the email received is:
Content-Type: text/plain; charset="Cp1252"
I dont understand why this is happenning even though the charset is being set as follows:
The charset ISO646-US results in '?' for all special chars. How can I set the charset to be iso-8859-1 for all content of the email? or is the code not written correctly.
Also would appreciate if anyone can provide any insight into why I get diff charsets when accessing the same java code running on 2 diff OS's.