# Text file encoding detection This article explains that how to detect encoding of a text file automatically in Java. To automatically detect the encoding of a text file, the [setAutoDetectEncodin......text file can be set during indexing when the [FileIndexing](https://reference...and used for indexing, it is saved in the index to use in such...