Skip to content

Commit

Permalink
[processing] handle non-ASCII characters in layer name when exporting (
Browse files Browse the repository at this point in the history
…fix #8673)
  • Loading branch information
alexbruy committed Sep 30, 2013
1 parent c70a0d2 commit 9a341ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/dataobjects.py
Expand Up @@ -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:
Expand Down

0 comments on commit 9a341ac

Please sign in to comment.