Fix utf8 handling in kaddressbook thumbnailcreator

This relates to bug 2625

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit fba4827c29)
r14.0.x
Slávek Banko 9 years ago
parent 0eeab90efa
commit fb7848bf4c

@ -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();

Loading…
Cancel
Save