usage: chardetect [-h] [--minimal] [-l] [-e {modern_web,legacy_iso,legacy_mac,legacy_regional,dos,mainframe,all}] [-i INCLUDE_ENCODINGS] [-x EXCLUDE_ENCODINGS] [--no-match-encoding NO_MATCH_ENCODING] [--empty-input-encoding EMPTY_INPUT_ENCODING] [--version] [files ...] Detect character encoding of files. positional arguments: files Files to detect encoding of options: -h, --help show this help message and exit --minimal Output only the encoding name -l, --language Include detected language in output -e {modern_web,legacy_iso,legacy_mac,legacy_regional,dos,mainframe,all}, --encoding-era {modern_web,legacy_iso,legacy_mac,legacy_regional,dos,mainframe,all} Encoding era filter -i INCLUDE_ENCODINGS, --include-encodings INCLUDE_ENCODINGS Comma-separated list of encodings to consider -x EXCLUDE_ENCODINGS, --exclude-encodings EXCLUDE_ENCODINGS Comma-separated list of encodings to exclude --no-match-encoding NO_MATCH_ENCODING Encoding to return when detection is inconclusive (default: cp1252) --empty-input-encoding EMPTY_INPUT_ENCODING Encoding to return for empty input (default: utf-8) --version show program's version number and exit