BAEL-4753: pass encoding parameter to the getBytes() (#13677)
* BAEL-4753: pass encoding parameter to the getBytes() * BAEL-4753: pass encoding parameter to the getBytes()
This commit is contained in:
@@ -40,6 +40,6 @@ public class CharacterEncodingExamples {
|
||||
charsetDecoder.onMalformedInput(codingErrorAction);
|
||||
return new BufferedReader(
|
||||
new InputStreamReader(
|
||||
new ByteArrayInputStream(input.getBytes()), charsetDecoder)).readLine();
|
||||
new ByteArrayInputStream(input.getBytes(charset)), charsetDecoder)).readLine();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user