From 28beb3af47b12ea711ac6e678459d8ddbd718f96 Mon Sep 17 00:00:00 2001 From: rabla Date: Fri, 1 Apr 2005 12:27:14 +0000 Subject: [PATCH] fromLocal8Bit for attributes git-svn-id: http://svn.osgeo.org/qgis/trunk@3057 c8812cc2-4d05-0410-92ff-de0c093fc19c --- plugins/grass/qgsgrassattributes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/grass/qgsgrassattributes.cpp b/plugins/grass/qgsgrassattributes.cpp index 52723988bdd..6114b95c48f 100644 --- a/plugins/grass/qgsgrassattributes.cpp +++ b/plugins/grass/qgsgrassattributes.cpp @@ -179,7 +179,10 @@ void QgsGrassAttributes::addAttribute ( int tab, const QString &name, const QStr int row = tb->numRows()-1; tb->setText ( row, 0, name ); - tb->setText ( row, 1, value ); + + // I have no rational explanation why fromLocal8Bit is necessary, value should be in unicode + // because QgsGrassProvider::attributes is using mEncoding->toUnicode() + tb->setText ( row, 1, QString::fromLocal8Bit(value) ); tb->setText ( row, 2, type ); }