author | zautrix <zautrix> | 2005-06-27 10:38:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-27 10:38:24 (UTC) |
commit | 24cdc6d9bf9f31b036fae270b32cc85808280e68 (patch) (unidiff) | |
tree | 6b1be13c17453011a1d71b5f0e8a4157282336cc | |
parent | 16d3551a207f02679aeaeb943f00684db223934d (diff) | |
download | kdepimpi-24cdc6d9bf9f31b036fae270b32cc85808280e68.zip kdepimpi-24cdc6d9bf9f31b036fae270b32cc85808280e68.tar.gz kdepimpi-24cdc6d9bf9f31b036fae270b32cc85808280e68.tar.bz2 |
fixx
-rw-r--r-- | kaddressbook/xxport/csv_xxport.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kaddressbook/xxport/csv_xxport.cpp b/kaddressbook/xxport/csv_xxport.cpp index 81148d9..7281003 100644 --- a/kaddressbook/xxport/csv_xxport.cpp +++ b/kaddressbook/xxport/csv_xxport.cpp | |||
@@ -31,6 +31,7 @@ $Id$ | |||
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qregexp.h> | 32 | #include <qregexp.h> |
33 | #include <qtextstream.h> | 33 | #include <qtextstream.h> |
34 | #include <qtextcodec.h> | ||
34 | 35 | ||
35 | #include <kfiledialog.h> | 36 | #include <kfiledialog.h> |
36 | #ifndef KAB_EMBEDDED | 37 | #ifndef KAB_EMBEDDED |
@@ -151,6 +152,7 @@ KABC::AddresseeList CSVXXPort::importContacts( const QString& ) const | |||
151 | void CSVXXPort::doExport( QFile *fp, const KABC::AddresseeList &list ) | 152 | void CSVXXPort::doExport( QFile *fp, const KABC::AddresseeList &list ) |
152 | { | 153 | { |
153 | QTextStream t( fp ); | 154 | QTextStream t( fp ); |
155 | t.setCodec( QTextCodec::codecForName("utf8") ); | ||
154 | 156 | ||
155 | KABC::AddresseeList::ConstIterator iter; | 157 | KABC::AddresseeList::ConstIterator iter; |
156 | KABC::Field::List fields = addressBook()->fields(); | 158 | KABC::Field::List fields = addressBook()->fields(); |
@@ -177,7 +179,7 @@ void CSVXXPort::doExport( QFile *fp, const KABC::AddresseeList &list ) | |||
177 | if ( !first ) | 179 | if ( !first ) |
178 | t << ","; | 180 | t << ","; |
179 | 181 | ||
180 | t << "\"" << (*fieldIter)->value( addr ).replace( QRegExp("\n"), "\\n" ) << "\""; | 182 | t << "\"" << (*fieldIter)->value( addr ) << "\""; |
181 | first = false; | 183 | first = false; |
182 | } | 184 | } |
183 | 185 | ||