Skip to content

Commit

Permalink
Specify encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
psiniemi committed Nov 5, 2015
1 parent 51b435b commit a366e89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;

import org.junit.Test;

Expand All @@ -20,7 +21,7 @@ public void testTool() throws Exception {
System.setProperty("decrypt", "");
ByteArrayOutputStream output = new ByteArrayOutputStream();
PrintStream oldOut = System.out;
System.setOut(new PrintStream(output));
System.setOut(new PrintStream(output, true, "UTF-8"));
ObfuscatorTool.main(new String[] {"target/test-classes/root.properties.encrypted", "target/test-classes/root.properties.key" });
System.setOut(oldOut);
byte[] outputData = output.toByteArray();
Expand Down

0 comments on commit a366e89

Please sign in to comment.