Tag Info

New answers tagged

1

You can use the following which should set the encoding of your loaded layers to UTF-8: for layer in QgsMapLayerRegistry.instance().mapLayers().values(): layer.setProviderEncoding(u'UTF-8') layer.dataProvider().setEncoding(u'UTF-8') print layer.name(), layer.dataProvider().encoding() #Optional check: prints layer name and its encoding source ...



Top 50 recent answers are included