Hello,
we try to write non-ASCII characters inside of a QGIS python plugin. There is
no problem with the script but with the attribute table, where the characters
are not written in utf-8 or sth. else (see attachment). Any suggestions?
Here is an example of our code to fill the attribute table. Row means a list
entry which is utf-8 coded.
for row in cursor.fetchall():
# add feature
feat = QgsFeature()
feat.setGeometry(
QgsGeometry.fromPoint(QgsPoint(row[3], row[4])) )
feat.setAttributes([row[1],
row[2], row[3], row[4], self.path, row[0], row[5]])
provider.addFeatures([feat])
Christian Böhnke
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer