Codepage auto-detection is designed to detect and choose the appropriate code page used in DOS, for translation of MBCS strings into Unicode strings.
This feature, however, doesn’t guarantee 100% accuracy because it uses an estimation method from only the given strings, and your caution is needed. The malfunction may occur, especially when the given strings are too short or multiple similar strings appear repeatedly.