Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Fix for bug #25 #26

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix for bug #25
Fix for bug #25 non-ASCII characters aren't handled by the
inputstreamreader
james2432 committed May 12, 2016
commit 9adeb6fb95325f8295e0cf70b8245c41bea649db
Original file line number Diff line number Diff line change
@@ -547,7 +547,7 @@ public String sendRequest(String[] hosts, String urlSuffix, String method, Strin
BufferedReader response;
String s;
if(responseCode==HttpURLConnection.HTTP_OK) {
response = new BufferedReader(new InputStreamReader (conn.getInputStream()));
response = new BufferedReader(new InputStreamReader (conn.getInputStream(),"UTF-8"));
char[] cbuf = new char[]{};
response.read(cbuf);
s = response.readLine();