Mar-26-2023, 12:12 PM
(This post was last modified: Mar-26-2023, 12:12 PM by Gribouillis.)
(Mar-26-2023, 10:37 AM)Melcu54 Wrote: can you uodate my code as to work with Chardet module?No, but you could try the following in a terminal / cmd tool to guess your file's encoding
Output:python -m chardet.cli.chardetect FILENAME
For example I have a file named 'ham' and here is the output with this commandOutput:λ python -m chardet.cli.chardetect ham
ham: ascii with confidence 1.0