We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The C code assumes that the arguments are in UTF-8 encoding.
$ irb irb(main):001:0> a = "\xe8".force_encoding("iso8859-1") => "\xE8" irb(main):002:0> b = a.encode("utf-8") => "è" irb(main):003:0> JaroWinkler.distance(a, b) NameError: uninitialized constant JaroWinkler from (irb):3 from /usr/local/bin/irb:11:in `<main>' irb(main):004:0> require 'jaro_winkler' => true irb(main):005:0> JaroWinkler.distance(a, b) => 0.0 irb(main):006:0> a.encoding => #<Encoding:ISO-8859-1> irb(main):007:0> b.encoding => #<Encoding:UTF-8> irb(main):008:0>
The text was updated successfully, but these errors were encountered:
4af13c6
feat: support encodings other than utf-8
fe72ab4
Do not treat every string as UTF-8 encoding, instead, use Ruby's API to get unicode codepoints. close #7
No branches or pull requests
The C code assumes that the arguments are in UTF-8 encoding.
The text was updated successfully, but these errors were encountered: