IMAP: Force UTF-8 on message rebuild

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1933 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-03-21 21:53:59 +00:00
parent 4098afdf25
commit 7578f854ee
2 changed files with 2 additions and 2 deletions

View File

@ -2779,7 +2779,7 @@ public class DavExchangeSession extends ExchangeSession {
}
propertyValue = getPropertyIfExists(properties, "htmldescription");
if (propertyValue != null) {
mimeMessage.setContent(propertyValue, "text/html");
mimeMessage.setContent(propertyValue, "text/html; charset=UTF-8");
} else {
propertyValue = getPropertyIfExists(properties, "body");
if (propertyValue != null) {

View File

@ -535,7 +535,7 @@ public class EwsExchangeSession extends ExchangeSession {
if (propertyValue == null) {
propertyValue = "";
}
mimeMessage.setContent(propertyValue, "text/html");
mimeMessage.setContent(propertyValue, "text/html; charset=UTF-8");
mimeMessage.writeTo(baos);
if (LOGGER.isDebugEnabled()) {