Skip to main content

Module detector

Module detector 

Source
Expand description

Encoding detection: a frozen rule-based algorithm, deliberately without statistical guessing so results are auditable and reproducible.

Detection order is fixed: BOM sniffing first, then strict UTF-8, then strict GB18030. Reordering the UTF-8/GB18030 checks would reclassify ASCII-only files and break idempotence.

Enums§

DetectedEncoding
Encodings this tool can classify a byte stream as.

Functions§

detect
Classify raw bytes. Rule-based on purpose — no statistical guessing.