fix ’ in outlook generated body

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@23 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2007-02-07 10:54:29 +00:00
parent 5bb3bab6c0
commit f471e40dc3
1 changed files with 4 additions and 2 deletions

View File

@ -614,7 +614,7 @@ public class ExchangeSession {
}
line = CONTENT_TYPE_HEADER + contentType + ";\n\tboundary=\"" + boundary + "\"";
} else {
line = CONTENT_TYPE_HEADER + "text/html";
line = CONTENT_TYPE_HEADER + "text/html; charset=UTF-8";
}
// skip winmail.dat
reader.readLine();
@ -638,7 +638,7 @@ public class ExchangeSession {
loadAttachments();
// TODO : test actual header values
result.append("\n--").append(boundary)
.append("\nContent-Type: text/html")
.append("\nContent-Type: text/html; charset=UTF-8")
.append("\nContent-Transfer-Encoding: 7bit")
.append("\n\n");
@ -679,6 +679,8 @@ public class ExchangeSession {
}
if (mstnefDetected) {
fullHeaders = result.toString();
// also fix invalid body characters
htmlBody = htmlBody.replaceAll("’","'");
}
} catch (IOException e) {