mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #52] Archive Method: Wget: Detect and fix downloaded file encodings to utf-8 #1546
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pirate on GitHub (Nov 3, 2017).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/52
Best guess for encoding:
First un-gzip any gzipped files:
Then re-detect encoding and normalize to UTF-8
@Offirmo commented on GitHub (Mar 19, 2019):
Real case: I archived http://catb.org/jargon/html/index.html
Original:

Archived:

too bad...
@pirate commented on GitHub (Apr 16, 2019):
@Offirmo don't worry, the byte-for-byte data from the server is saved correctly in the WARC. Even though it's displaying incorrectly now, as we add encoding fixes later on it will update and fix older previously mangled/badly-decoded archives to display correctly.
@cdvv7788 commented on GitHub (Jul 16, 2020):
@Offirmo I just tried with the django branch:
archivebox add http://catb.org/jargon/html/index.htmland it seems to be working correctly now.@pirate I guess this has been fixed since. Can you please confirm and close the issue if that is the case?
@pirate commented on GitHub (Jul 16, 2020):
@Offirmo if you see any further encoding issues on the latest
djangoversion feel free to comment back here and I can reopen this ticket.