1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-08 04:08:12 -05:00

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"); propertyValue = getPropertyIfExists(properties, "htmldescription");
if (propertyValue != null) { if (propertyValue != null) {
mimeMessage.setContent(propertyValue, "text/html"); mimeMessage.setContent(propertyValue, "text/html; charset=UTF-8");
} else { } else {
propertyValue = getPropertyIfExists(properties, "body"); propertyValue = getPropertyIfExists(properties, "body");
if (propertyValue != null) { if (propertyValue != null) {

View File

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