[Qgis-developer] layer encoding

Siki Zoltan siki at agt.bme.hu
Sat Sep 6 03:18:23 PDT 2014


Thanks Salvatore,

Zoltan

On Fri, 5 Sep 2014, Salvatore Larosa wrote:

> 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
>


More information about the Qgis-developer mailing list