Re: [Qgis-developer] layer encoding

2014-09-06 Thread Siki Zoltan


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


[Qgis-developer] layer encoding

2014-09-05 Thread Siki Zoltan

Dear List,

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

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