Possible duplicate:How to determine the encoding / codepage of a text file.How can I best guess the encoding when the specification is missing (byte order)?
I would like to know if some delphi libraries exist to detect the character encoding of a text file.
In my comment there was a link to how-can-i-best-guess-the-encoding-when-the-bom-byte-order-mark-is-missing , which might work for you if the text files don't have BOM.
BOM
Charset Detector library . BOM, , .