Skip to content
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

What encoding is used when a string is passed to farm_fingerprint_64? #56

Open
chrishinds opened this issue Dec 7, 2021 · 0 comments
Open

Comments

@chrishinds
Copy link

Great library, I'm switching over from pyfarmhash and checking equivalence.

>>> pyhash.farm_fingerprint_64()(bytearray('fôobár', encoding='utf-8')) ==  farmhash.fingerprint64('fôobár')
True

👍

I know you explain this in the README.md, and again in #24, but I still don't understand why:

>>> pyhash.farm_fingerprint_64()(bytearray('fôobár', encoding='utf-8')) == pyhash.farm_fingerprint_64()('fôobár')
False

What encoding is used when a string is passed?

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

No branches or pull requests

1 participant