summaryrefslogtreecommitdiffstats
path: root/kaddressbook/kabtools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/kabtools.cpp')
-rw-r--r--kaddressbook/kabtools.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/kaddressbook/kabtools.cpp b/kaddressbook/kabtools.cpp
index ba3b886f0..7e6b5c9cd 100644
--- a/kaddressbook/kabtools.cpp
+++ b/kaddressbook/kabtools.cpp
@@ -80,12 +80,15 @@ void KABTools::mailVCards( const TQStringList &uids, KABC::AddressBook *ab )
KABC::VCardConverter converter;
KABC::Addressee::List list;
list.append( addressee );
+#if defined(KABC_VCARD_ENCODING_FIX)
+ const TQCString vcard = converter.createVCardsRaw( list, KABC::VCardConverter::v3_0 );
+ file.writeBlock( vcard, vcard.length() );
+#else
TQString vcard = converter.createVCards( list, KABC::VCardConverter::v3_0 );
-
TQTextStream t( &file );
t.setEncoding( TQTextStream::UnicodeUTF8 );
t << vcard;
-
+#endif
file.close();
KURL url( path );