-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 @@ -33,2 +33,3 @@ $Id$ #include <qtextstream.h> +#include <qtextcodec.h> @@ -153,2 +154,3 @@ void CSVXXPort::doExport( QFile *fp, const KABC::AddresseeList &list ) QTextStream t( fp ); + t.setCodec( QTextCodec::codecForName("utf8") ); @@ -179,3 +181,3 @@ void CSVXXPort::doExport( QFile *fp, const KABC::AddresseeList &list ) - t << "\"" << (*fieldIter)->value( addr ).replace( QRegExp("\n"), "\\n" ) << "\""; + t << "\"" << (*fieldIter)->value( addr ) << "\""; first = false; |