summaryrefslogtreecommitdiffstats
path: root/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/thumbnailcreator/ldifvcardcreator.cpp')
-rw-r--r--kaddressbook/thumbnailcreator/ldifvcardcreator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp b/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp
index 44e4684f8..5c0314c3c 100644
--- a/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp
+++ b/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp
@@ -80,7 +80,9 @@ bool VCard_LDIFCreator::readContents( const TQString &path )
const TQString contents( data );
const TQCString contentsRaw( data.data(), data.size() );
#else
- TQString contents = file.readAll();
+ TQTextStream s( &file );
+ s.setEncoding( TQTextStream::UnicodeUTF8 );
+ TQString contents = s.read();
#endif
file.close();