Skip to content

Commit

Permalink
Merge pull request #752 from davejbur/issue-745-compile-error
Browse files Browse the repository at this point in the history
Correction of bug when compiling/testing on Windows
  • Loading branch information
stleary committed Jun 29, 2023
2 parents a963115 + 3d52434 commit 8ce0019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/json/junit/XMLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;

Expand Down Expand Up @@ -915,7 +916,7 @@ public void testIssue537CaseSensitiveHexEscapeFullFile(){
InputStream xmlStream = null;
try {
xmlStream = XMLTest.class.getClassLoader().getResourceAsStream("Issue537.xml");
Reader xmlReader = new InputStreamReader(xmlStream);
Reader xmlReader = new InputStreamReader(xmlStream, Charset.forName("UTF-8"));
JSONObject actual = XML.toJSONObject(xmlReader, true);
InputStream jsonStream = null;
try {
Expand Down

0 comments on commit 8ce0019

Please sign in to comment.