testing: fix utf8 handling in tdeabc/testread2

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e305bd818c)
pull/16/head
Slávek Banko 7 years ago
parent 0cacbbb53f
commit 97b5a9f18f

@ -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