I´m using python in QGIS 2.2 and struggling with an error trying this:
# create layer from text_vlayer = QgsVectorLayer(_ur1, "raw", "delimitedtext")works finebut:
# export layer to shape_writer = QgsVectorFileWriter.writeAsVectorFormat\(_vlayer,"hoppla.shp","utf-8",None,"ESRI Shapefile")...