From ff82af8c5ed5b06fff5ce372c3e0876396183da6 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 20 Jun 2011 22:14:37 +0000 Subject: [PATCH] Fix 3151800, force UTF-8 in appendEnvelopeHeaderValue git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1713 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 4cc1dbe6..4c5f5add 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -996,7 +996,7 @@ public class ImapConnection extends AbstractConnection { buffer.append(value); } else { buffer.append('"'); - buffer.append(MimeUtility.encodeText(value)); + buffer.append(MimeUtility.encodeText(value, "UTF-8", null)); buffer.append('"'); }