From 078889dd6359fc930d1326a6accb9319dcbd9491 Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Mon, 1 Aug 2011 23:50:15 -0700 Subject: [PATCH] Fix problem with the initial empty untitled page having garbled encoding (affecting the translated page title). --- articleview.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/articleview.cc b/articleview.cc index fb9d720b..98ba7133 100644 --- a/articleview.cc +++ b/articleview.cc @@ -159,8 +159,9 @@ ArticleView::ArticleView( QWidget * parent, ArticleNetworkAccessManager & nm, sptr< Dictionary::DataRequest > r = articleNetMgr.getResource( blankPage, contentType ); - ui.definition->setHtml( QByteArray( &( r->getFullData().front() ), - r->getFullData().size() ), blankPage ); + ui.definition->setHtml( QString::fromUtf8( &( r->getFullData().front() ), + r->getFullData().size() ), + blankPage ); } void ArticleView::setGroupComboBox( GroupComboBox const * g )