-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when using german specific letters #5
Comments
Hi @smartini87 , As I checked with the libpostal library This is the issue which was raised in This is why I have added a layer in the Also, you have to normalize the non-English/special address before passing it to the parser using I think you can use the below function to remove the accents before passing it to it. import unicodedata
def remove_accents(input_str):
nfkd_form = unicodedata.normalize('NFKD', input_str)
return u"".join([c for c in nfkd_form if not unicodedata.combining(c)]) Let me know if that works or we need to wait for the |
Thanks for the reply @smartini87 , I just tried the same code on my python env and pasted below, It is not giving me an infinite loop. and please make sure you use the latest version,
and pypostalwin may be stuck if the character is non-ASCII values like ®,±, Æ, but I have added many exceptions possible that will remove these characters basically, the best practice is, to convert your address into the UTF8 encoded string and send them into the parser. |
Script aborts when using letters with german umlauts (ä, ö, ü) letters with sharp s (ß).
The text was updated successfully, but these errors were encountered: