chardet - universal character encoding detector
| Use Case | Command | Description |
|---|---|---|
| π Detect encoding of one or more files | chardet file1.txt file2.txt |
Reports encoding name and confidence for each file |
| π₯ Detect encoding from stdin | cat unknown.txt | chardet |
Reads from stdin if no files specified |
| π Show confidence level | chardet myfile.txt |
Output includes confidence percentage (e.g., 0.99 for 99%) |
chardet [file ...]
Report heuristically-detected character encoding for each file.
For every specified file (defaulting to stdin if no files are specified), reads and determines the character encoding of the file content. Reports the name and confidence level for each file's detected character encoding.
/usr/share/doc/python-chardet-doc/index.html
chardet module was written by Mark Pilgrim <mark AT diveintomark.org>
This manual page was written by Piotr OΕΌarowski <piotr AT debian.org>, for the Debian project (but may be used by others).
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 04:33 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)