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

Further enhance the situation regarding unknown encoding #347

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

benoit74
Copy link
Collaborator

@benoit74 benoit74 commented Jul 8, 2024

Fix #331

Changes:

  • search for and use the charset in document header only when document is HTML
  • add new --encoding-aliases argument to pass encoding/charset aliases

@benoit74 benoit74 self-assigned this Jul 8, 2024
@benoit74 benoit74 marked this pull request as ready for review July 8, 2024 15:33
@benoit74 benoit74 requested a review from rgaudin July 8, 2024 15:33
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK ; please see my comments

tests/test_warc_to_zim.py Outdated Show resolved Hide resolved
tests/test_warc_to_zim.py Outdated Show resolved Hide resolved
src/warc2zim/utils.py Outdated Show resolved Hide resolved
src/warc2zim/utils.py Outdated Show resolved Hide resolved
@benoit74
Copy link
Collaborator Author

benoit74 commented Aug 2, 2024

For some reason, the CI was refusing to run. I created a new branch and PR and it was still the same. I suspect the problem is linked to the fact there was conflicting changes. I had to rebase to fix them, sorry for the force push.

@benoit74 benoit74 requested a review from rgaudin August 2, 2024 11:50
@benoit74 benoit74 merged commit 6235567 into main Aug 2, 2024
5 checks passed
@benoit74 benoit74 deleted the charset_lookup_error branch August 2, 2024 13:53
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.

LookupError: unknown encoding: unicode
2 participants