The file in question is not under my control. Most byte sequences are valid UTF-8, it is not ISO-8859-1 (or an other encoding). I want to do my best do extract as much informat
The behaviour you want is already the default for InputStreamReader. So there is no need to specify it yourself. This suffices:
InputStreamReader
final BufferedInputStream in = new BufferedInputStream(istream); final Reader inputReader = new InputStreamReader(in, StandardCharsets.UTF_8);