toUnicode before stripaccents

This commit is contained in:
Ruud
2012-01-23 22:49:38 +01:00
parent 6b85baf969
commit 4e4d47d6f8
+1 -1
View File
@@ -46,4 +46,4 @@ def isInt(value):
return False
def stripAccents(s):
return ''.join((c for c in unicodedata.normalize('NFD', s) if unicodedata.category(c) != 'Mn'))
return ''.join((c for c in unicodedata.normalize('NFD', toUnicode(s)) if unicodedata.category(c) != 'Mn'))