Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use correct encoding

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

0 comments on commit 1d08f97

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