3739: Find duplicate people (error in soundex unicode)

svn: r14878
This commit is contained in:
Doug Blank 2010-03-20 12:33:44 +00:00
parent e2bb5062d1
commit 552f09ce07

View File

@ -48,7 +48,7 @@ def soundex(strval):
"Return the soundex value to a string argument." "Return the soundex value to a string argument."
strval = unicodedata.normalize('NFKD', strval = unicodedata.normalize('NFKD',
strval.upper().strip()).encode('ASCII', 'ignore') unicode(strval.upper().strip())).encode('ASCII', 'ignore')
if not strval: if not strval:
return "Z000" return "Z000"
strval = strval.encode('iso-8859-1') strval = strval.encode('iso-8859-1')