fromLocal8Bit for attributes

git-svn-id: http://svn.osgeo.org/qgis/trunk@3057 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rabla 2005-04-01 12:27:14 +00:00
parent 466b7bf801
commit 28beb3af47

View File

@ -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 );
}