mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04: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:
|
if idx != -1:
|
||||||
filename = filename[:idx]
|
filename = filename[:idx]
|
||||||
|
|
||||||
filename = str(layer.name())
|
filename = unicode(layer.name())
|
||||||
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
|
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
|
||||||
filename = ''.join(c for c in filename if c in validChars)
|
filename = ''.join(c for c in filename if c in validChars)
|
||||||
if len(filename) == 0:
|
if len(filename) == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user