Hi,

Il 05/Set/2014 19:48 "Siki Zoltan" <[email protected]> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to