When using
new BufferedReader(new InputStreamReader(inputStream))
and then mapping each line like
String(bufferedReader.readLine().getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
for some cases doesnt map as expected
when using
new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.ISO_8859_1))
it sees characters as expected
I cannot use second second method with providing the charset to InputStreamReader. Any idea why it wouldn't work?