-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-encode if a website is not in UTF-8
It re-encodes in a particularly inefficient way: by parsing, searching for the meta charset tag, re-encoding the raw bytes using that encoding, and then re-parsing the re-encoded string. Hyperfine (https://github.com/sharkdp/hyperfine) shows that this is 36% slower than the previous version, but both versions complete nearly instantaneously, so I'm OK with it.
- Loading branch information
Showing
3 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters