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

Alexandre Busquets abusquets at gmail.com
Mon Mar 2 06:22:24 PST 2015


Hi,

How should I load a vector layer with an accented path without error?

This my code sample:

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


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150302/3e690cb7/attachment.html>


More information about the Qgis-user mailing list