Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-23531] preserve charsets (assume UTF-8 for both input and ou…
…tput)
  • Loading branch information
nilleb committed Apr 10, 2015
1 parent 2566230 commit 66fb636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/mstest/ContentCorrector.java
Expand Up @@ -27,7 +27,7 @@ public String fix() throws IOException
File parent = inFile.getParentFile();
File outfile = new File(parent, filename);
PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(outfile), StandardCharsets.UTF_8));
BufferedReader in = new BufferedReader(new FileReader(inFile));
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(inFile), StandardCharsets.UTF_8));
String line = in.readLine();
while (line != null) {
line = stripIllegalEntities(stripIllegalCharacters(line));
Expand Down

0 comments on commit 66fb636

Please sign in to comment.