summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-05-29 02:43:02 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-05-29 02:43:02 +0200
commitfba4827c29257321c11528f8ff6567172efe2c63 (patch)
tree318762be4d835c65caca069f9758cdfa9f532d8d
parent85a02f7b0d1cbc92ea4273443bb95a652a5ad8ab (diff)
downloadtdepim-fba4827c29257321c11528f8ff6567172efe2c63.tar.gz
tdepim-fba4827c29257321c11528f8ff6567172efe2c63.zip
Fix utf8 handling in kaddressbook thumbnailcreator
This relates to bug 2625 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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();