Thanks Salvatore,

Zoltan

On Fri, 5 Sep 2014, Salvatore Larosa wrote:

Hi,

Il 05/Set/2014 19:48 "Siki Zoltan" <s...@agt.bme.hu> ha scritto:

Dear List,

I can't find a way to get the encoding of a vector layer from python.
Can someone give me a tipp?

from python console:

layer = iface.activeLayer()
layer.dataProvider().encoding()

more info
http://qgis.org/api/classQgsVectorDataProvider.html#a628c5bd63c2bf0637ac4c676ecdb921e

Best Regards,
-SL


Thanks,
Zoltan
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to