summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/mailmodel.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index b0cdda7e85f9..521b74f1f72d 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -828,7 +828,11 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css:
OUString subject(
url.getBase(
INetURLObject::LAST_SEGMENT, false,
+#ifdef WNT
+ INetURLObject::NO_DECODE)); // MAPISendMail does not accept Unicode
+#else
INetURLObject::DECODE_WITH_CHARSET));
+#endif
if (subject.isEmpty()) {
subject = maAttachedDocuments[0];
}