Evidence in file bytes
Character encodings map byte sequences to characters. A file may contain a byte-order mark, byte combinations that are invalid under one candidate, or non-ASCII bytes that narrow the possibilities. If every byte falls in the shared ASCII range, several encodings produce exactly the same text. Detection can then identify compatibility, but it cannot establish which label the file's producer intended.