summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/odict/dingwidget.cpp1
1 files changed, 1 insertions, 0 deletions
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
@@ -36,12 +36,13 @@ void DingWidget::loadDict( QString name )
cfg.setGroup( "Method_" + name );
QFile file( cfg.readEntry( "file" ) );
if( file.open( IO_ReadOnly ) )
{
QTextStream stream( &file );
+ stream.setEncoding(QTextStream::UnicodeUTF8);
while ( !stream.eof() )
{
lines.append( stream.readLine() );
}
file.close();
}