Friday, December 18, 2015

Umlaut in emails

If in an email you see f�r instead of für, chances are that your weblogic/JavaMail is not using the right encoding (presumably UTF-8)

You can try several options:

-Dfile.encoding=UTF-8
change the template to use escaped (HTML) charachers
see https://issues.apache.org/jira/browse/GERONIMO-5022 :
message.setSubject(subject,"UTF-8");
message.setText(text, "UTF-8");
properties.setProperty("mail.mime.charset","UTF8");






No comments: