diff --git a/src/soundex.py b/src/soundex.py index 19ee3f988..1322ccf6a 100644 --- a/src/soundex.py +++ b/src/soundex.py @@ -48,7 +48,7 @@ def soundex(strval): "Return the soundex value to a string argument." strval = unicodedata.normalize('NFKD', - strval.upper().strip()).encode('ASCII', 'ignore') + unicode(strval.upper().strip())).encode('ASCII', 'ignore') if not strval: return "Z000" strval = strval.encode('iso-8859-1')