From 4604bcd95999c9f66f500d385494ab7767cbf3a4 Mon Sep 17 00:00:00 2001 From: gints Date: Sun, 02 Jan 2005 12:23:29 +0000 Subject: Changes to force odict use UTF8 encoding. Please report if it cause problems with older dictionary files. --- (limited to 'noncore/apps/odict/dingwidget.cpp') diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index ef36ee5..3eb1e45 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -39,6 +39,7 @@ void DingWidget::loadDict( QString name ) if( file.open( IO_ReadOnly ) ) { QTextStream stream( &file ); + stream.setEncoding(QTextStream::UnicodeUTF8); while ( !stream.eof() ) { lines.append( stream.readLine() ); -- cgit v0.9.0.2