[Qgis-user] pyqgis vector layer with an accented path

Jakob Lanstorp jlanstorp at gmail.com
Mon Mar 2 23:43:24 PST 2015


You can use a u-prefix indicating unicode.

f = u"/home/abusquets/aviĆ³/dades.shp"
vlayer = QgsVectorLayer(f, "layer_name_you_like", "ogr")
print vlayer.isValid()

Jakob



-----
Jakob Lanstorp
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/pyqgis-vector-layer-with-an-accented-path-tp5190931p5191089.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list