[Qgis-developer] layer encoding

Salvatore Larosa lrssvtml at gmail.com
Fri Sep 5 11:22:51 PDT 2014


Hi,

Il 05/Set/2014 19:48 "Siki Zoltan" <siki at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140905/b02e489c/attachment.html>


More information about the Qgis-developer mailing list