Skip to content

Commit

Permalink
Maybe fixing the windows test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell committed Feb 18, 2025
1 parent 8e6dcd2 commit 671d683
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import java.io.File;
import java.io.FileWriter;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.Properties;

/**
Expand Down Expand Up @@ -121,7 +122,7 @@ public void readFileWithCharset() throws Exception {
props.setProperty("another", "Two");
props.setProperty("zh", "中文");
File file = temp.newFile();
try (FileWriter f = new FileWriter(file)) {
try (FileWriter f = new FileWriter(file, StandardCharsets.UTF_8)) {
props.store(f, "Pipeline test");
}

Expand Down

0 comments on commit 671d683

Please sign in to comment.