chardetng-py tends to always predict windows-1252
I want to read a text file with a python script and determine a best guess as to its character-encoding using the chardetng library. I’m using the chardetng.py binding to the chardetng Rust library.
How to encode unicode to bytes, so that the original string can be retrieved? in python 3.11
In python 3.11 we can encode a string like: