Permalink
Browse files

use correct encoding

  • Loading branch information...
1 parent c4dc6b0 commit 1d08f974f3c9258811e007ebb3f87335ed44ad7c @purplefox purplefox committed Aug 21, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 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.