testing: fix utf8 handling in tdeabc/testread2

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e305bd818c)
v3.5.13-sru
Slávek Banko 8 years ago
parent 3adc5018bf
commit cce22677ba

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

Loading…
Cancel
Save