3739: Find duplicate people (error in soundex unicode)
svn: r14878
This commit is contained in:
parent
e2bb5062d1
commit
552f09ce07
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user