Skip to content
Permalink
Browse files

[processing] handle non-ASCII characters in layer name when exporting (

…fix #8673)
  • Loading branch information
alexbruy committed Sep 30, 2013
1 parent c70a0d2 commit 9a341acd13d3829b4064b2776cb228cfb6803a53
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/dataobjects.py
@@ -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:

0 comments on commit 9a341ac

Please sign in to comment.
You can’t perform that action at this time.