2 ms·
If you’re actually in a position where you need to guess the encoding, something like “ftfy” <https://github.com/rspeer/python-ftfy https://github.com/rspeer/py
by teddyh 3y ago
If you’re actually in a position where you need to guess the encoding, something like “ftfy” <https://github.com/rspeer/python-ftfy https://github.com/rspeer/python-ftfy> (webapp: <https://ftfy.vercel.app/ https://ftfy.vercel.app/>) is a perfectly reasonable choice.
But, you should always do your absolute utmost not to be put in a situation where guessing is your only choice.