Fix utf8 handling in kaddressbook thumbnailcreator

This relates to bug 2625

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/21/head
Slávek Banko 9 years ago
parent 85a02f7b0d
commit fba4827c29

@ -80,7 +80,9 @@ bool VCard_LDIFCreator::readContents( const TQString &path )
const TQString contents( data ); const TQString contents( data );
const TQCString contentsRaw( data.data(), data.size() ); const TQCString contentsRaw( data.data(), data.size() );
#else #else
TQString contents = file.readAll(); TQTextStream s( &file );
s.setEncoding( TQTextStream::UnicodeUTF8 );
TQString contents = s.read();
#endif #endif
file.close(); file.close();

Loading…
Cancel
Save