Character encoding detector for automatic detection of text encodings using occurrence analysis
84
Synchronous file encoding detection
Uses detectFileSync
100%
100%
Correct file paths
100%
100%
Handles null returns
100%
100%
Handles successful detection
100%
100%
Single encoding detection from binary data
Import chardet package
100%
100%
Read file as binary
100%
100%
Use chardet.detect()
100%
100%
Handle null return
100%
100%
Return encoding name
100%
100%
Statistical byte analysis pipeline
Primary encoding detection
72%
100%
Multi-encoding analysis
93%
100%
Confidence-based sorting
100%
100%
Match metadata extraction
100%
100%
File I/O handling
0%
0%
Offset-based file sampling
Uses chardet package
100%
100%
Uses detectFile method
0%
0%
Passes offset option
0%
0%
Passes sampleSize option
0%
0%
Handles detection result
100%
100%
Combines options correctly
0%
0%
SBCS n-gram analysis with binary search
Byte Normalization
100%
100%
N-gram Extraction
100%
100%
Binary Search
100%
100%
Confidence Scoring
100%
100%
Asynchronous file encoding detection
Uses detectFile method
0%
0%
Concurrent file processing
100%
100%
SampleSize option usage
0%
0%
Proper error handling
100%
100%
Correct result handling
100%
100%
Language-specific detection
Uses analyse() function
100%
100%
Extracts language information
100%
100%
Filters by confidence
100%
100%
Handles optional language
100%
100%
Uses Match type
100%
100%
Primary detection
100%
100%
Multi-encoding analysis with confidence scores
Uses analyse() method
100%
100%
Reads file as buffer
100%
100%
Returns match array
100%
100%
Preserves confidence ordering
100%
100%
Handles match properties
100%
100%
BOM (Byte Order Mark) detection
Uses chardet methods
100%
100%
Binary data handling
100%
100%
BOM presence detection
100%
100%
BOM type identification
100%
100%
Results integration
100%
100%
ISO-2022 escape sequence recognition
Uses detect API
100%
0%
Uses analyse API
100%
100%
Handles binary input
100%
100%
Filters ISO-2022 results
100%
100%
Returns confidence scores
100%
100%
Handles null results
100%
100%
Preserves result order
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-chardet