I wonder if it is possible to find what string encoding is? I know this may not be possible for some lines (for example, they don't have non-ASCII characters). Maybe it is possible to get a list of encodings that may be correct (possible) for a given string?
I am looking for a different way than trying to decode / encode and wait for the exception.
python encoding character-encoding
Maciej kucharz
source share