Hi,
How to change the charset for emails sent by TeamElements?
Now its charset=us-ascii.
Thanks.
You need to be logged in to post messages
Hi,
How to change the charset for emails sent by TeamElements?
Now its charset=us-ascii.
Thanks.
According to the JavaMail Class, for text messages, if the message string contains non US-ASCII characters, it will be encoded using the platform's default charset. Do you know what your platform encoding is?
There is a way to specify the default mail charset from outside of TE. From outside, you can create a .jsp file, and run it under Tomcat before using TE.
<%
System.setProperty("mail.mime.charset", "UTF-8");
%>
I'd like to review the implementation to see if this applies for the HTML messages too. Will look into this some more.
That works only for subject and content remains us-ascii. My encoding is KOI8-R, by default it sets this encoding for the subject. Using ""System.setProperty("mail.mime.charset", "UTF-8");"" affects only subject.
Subject: =?UTF-8?B?0L/RgNC40LLQtdGC?=
...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit