diff --git a/src/soundex.py b/src/soundex.py index 753db1b44..e7d9c3556 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" str2 = strval[0]