summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-10 14:58:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-10 23:04:34 +0200
commit8cb1f9ac1ce90b324307711f752591a1acc9a6df (patch)
tree7f080c7090d2442ee8bf1bb1224520c76d60dce7 /forms
parent40bcf53b5d663010efa8360c0d7dd0fe222bacfb (diff)
A charset is not a content transfer encoding
...the code was in this odd shape ever since bf4154eb5307ec8c35f000fd1df39ef3abb2eb6d "initial import" Change-Id: Ic931b99267bb6501f15119636f13391f1d065ed4
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/DatabaseForm.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 2c0e67cbab52..8f7d916cfd48 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -997,12 +997,13 @@ void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const OUString& rN
aContentDisp.append(rName);
aContentDisp.append('\"');
pChild->SetContentDisposition(aContentDisp.makeStringAndClear());
- pChild->SetContentType(OUString("text/plain"));
rtl_TextEncoding eSystemEncoding = osl_getThreadTextEncoding();
const sal_Char* pBestMatchingEncoding = rtl_getBestMimeCharsetFromTextEncoding( eSystemEncoding );
OUString aBestMatchingEncoding = OUString::createFromAscii(pBestMatchingEncoding);
- pChild->SetContentTransferEncoding(aBestMatchingEncoding);
+ pChild->SetContentType(
+ "text/plain; charset=\"" + aBestMatchingEncoding + "\"");
+ pChild->SetContentTransferEncoding("8bit");
// Body
SvMemoryStream* pStream = new SvMemoryStream;