I think it’s interesting how far we have come with UTF-8 adoption that it was the first time I had reached for said menu in probably nearly a decade.
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 :)