Skip to content

Commit 9a341ac

Browse files
committed
[processing] handle non-ASCII characters in layer name when exporting (fix #8673)
1 parent c70a0d2 commit 9a341ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/tools/dataobjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def exportVectorLayer(layer):
241241
if idx != -1:
242242
filename = filename[:idx]
243243

244-
filename = str(layer.name())
244+
filename = unicode(layer.name())
245245
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
246246
filename = ''.join(c for c in filename if c in validChars)
247247
if len(filename) == 0:

0 commit comments

Comments
 (0)