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

If bytes object not decodable as UTF-8, assume binary #295

Closed
wants to merge 1 commit into from

Conversation

wfaulk
Copy link

@wfaulk wfaulk commented Jan 31, 2022

Proposed solution for #292

This is a fairly naive solution, but it seems to work.

It might make sense to let the caller choose the character encoding, but that's probably outside the scope of this issue.

@seperman
Copy link
Owner

seperman commented Apr 9, 2022

Hey @wfaulk
Sorry it took me a long time to get to this PR. You are correct that we should allow the user to pass the encoding. Perhaps they can pass a list of encodings and we try them one by one. I'm gonna close this PR since I'm gonna go ahead and add that parameter. Thanks for the PR and bringing this issue to my attention.

@seperman seperman closed this Apr 9, 2022
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 this pull request may close these issues.

2 participants