testing: fix utf8 handling in tdeabc/testread2

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 7 years ago
parent 24b4a81573
commit e305bd818c

@ -113,6 +113,7 @@ vcardAsText( const TQString& location )
TQFile file( location );
if ( file.open( IO_ReadOnly ) ) {
TQTextStream stream( &file );
stream.setEncoding( TQTextStream::UnicodeUTF8 );
if ( !stream.eof() ) {
line = stream.read();
}

Loading…
Cancel
Save