Skip to content

Commit

Permalink
Forced reading UTF-8 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Apr 11, 2021
1 parent ebbf2b7 commit 741aa96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/maxprograms/swordfish/tm/RemoteDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private JSONObject postMessage(String servlet, JSONObject json) throws IOExcepti

StringBuilder sb = new StringBuilder();
try (InputStream stream = connection.getInputStream()) {
try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) {
try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8))) {
String line;
while ((line = reader.readLine()) != null) {
sb.append(line);
Expand Down

0 comments on commit 741aa96

Please sign in to comment.