I would have thought that the following two approaches to read a file should behave equally. But they don\'t. The second approach is throwing a MalformedInputException
MalformedInputException
2017 use:
Charset.forName("ISO_8859_1") instead of Charsets.ISO_8859_1