Skip to content

Spezial characters #13

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

Open
erikradisch opened this issue May 23, 2018 · 2 comments · May be fixed by #20
Open

Spezial characters #13

erikradisch opened this issue May 23, 2018 · 2 comments · May be fixed by #20

Comments

@erikradisch
Copy link

Hey!
Awesome module! It is exactly what I need. I only have one problem. Do I understand it right, that it works only with ascii-code? I tried special characters and they lead into an error...

@RevolutionTech
Copy link
Contributor

That's correct. weighted-levenshtein only support ASCII unfortunately. A PR to add UTF-8 support would be welcome though!

@B3AU
Copy link

B3AU commented Oct 4, 2018

Mapping with chr seems to work:

mapping = {s:chr(i+1) for i,s in enumerate(symbols)}

\x00 causes trouble, hence the +1

@LEFTazs LEFTazs linked a pull request Feb 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants