Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use correct encoding

  • Loading branch information...
commit 1d08f974f3c9258811e007ebb3f87335ed44ad7c 1 parent c4dc6b0
@purplefox purplefox authored
View
6 vertx-testsuite/src/test/java/vertx/tests/core/http/HttpTestClient.java
@@ -31,9 +31,7 @@
import org.vertx.java.framework.TestClientBase;
import org.vertx.java.framework.TestUtils;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
+import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
@@ -1782,7 +1780,7 @@ private File setupFile(String fileName, String content) throws Exception {
if (file.exists()) {
file.delete();
}
- BufferedWriter out = new BufferedWriter(new FileWriter(file));
+ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"));
out.write(content);
out.close();
return file;

0 comments on commit 1d08f97

Please sign in to comment.
Something went wrong with that request. Please try again.