mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] handle non-ASCII characters in layer name when exporting (fix #8673)
This commit is contained in:
parent
c70a0d23ab
commit
9a341acd13
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user