groovy.util.CharsetToolkit <p>Utility class to guess the encoding of a given text file.</p> <p>Unicode files encoded in UTF-16 (low or big endian) or UTF-8 files with a Byte Order Marker are correctly discovered. For UTF-8 files with no BOM, if the buffer is wide enough, the charset should also be discove ...