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

Breaks with UTF-8 charcaters (Danish character) #41

Open
kevinrademan opened this issue Nov 11, 2021 · 0 comments
Open

Breaks with UTF-8 charcaters (Danish character) #41

kevinrademan opened this issue Nov 11, 2021 · 0 comments

Comments

@kevinrademan
Copy link

It appears this library is breaking for UTF8 characters (See code below). I noticed that your currently forcing the encoding to Encoding::ASCII_8BIT (https://github.com/miyucy/snappy/blob/master/lib/snappy/shim.rb#L16)

pry(main)> Snappy.inflate(Snappy.deflate("æ"))
=> "\xC3\xA6"

Is there any reason why your doing this?

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