mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -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:
parent
4098afdf25
commit
7578f854ee
@ -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) {
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user