[processing] handle non-ASCII characters in layer name when exporting (fix #8673)

This commit is contained in:
Alexander Bruy 2013-09-30 15:56:23 +03:00
parent c70a0d23ab
commit 9a341acd13

View File

@ -241,7 +241,7 @@ def exportVectorLayer(layer):
if idx != -1:
filename = filename[:idx]
filename = str(layer.name())
filename = unicode(layer.name())
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
filename = ''.join(c for c in filename if c in validChars)
if len(filename) == 0: