Skip to content

Comment on Chardetng: A More Compact Character Encoding Detector for the Legacy Web

Comments

Fantastic write up.

I regularly use the Python port of the original chardet (https://pypi.org/project/chardet/). In fact, most python devs do since it comes with requests.

This post is full of gems. E.G: I learned that it's important for your meta charset to be in the first 1024 bytes of your HTML :)

FWIW Firefox issues a warning if it finds your charset declaration late, outside the 1024. Long copyright or license headers can cause this problem, annoyingly.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.