Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Fix for encoding error when using InputStreams #104

Closed
wants to merge 2 commits into from

Conversation

bmehner
Copy link

@bmehner bmehner commented May 20, 2016

@LosD
Copy link
Contributor

LosD commented May 20, 2016

Travis error seems unrelated.

@@ -244,7 +227,7 @@ private static File createFileFromInputStream(InputStream inputStream, String en
file = fileCandidate;

final BufferedWriter writer = FileHelper.getBufferedWriter(file, encoding);
final BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
final BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, Charset.forName(encoding)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of consistency, would it be nicer to use FileHelper.getBufferedReader(inputStream, encoding)?

@kaspersorensen
Copy link
Contributor

Sorry for the long wait - I didn't realize that you had changed the branch since my remark.

+1 and let's merge! :)

@asfgit asfgit closed this in f1fc2bf Jun 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants