aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ru/sape
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ru/sape')
-rw-r--r--src/main/java/ru/sape/SapeConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/ru/sape/SapeConnection.java b/src/main/java/ru/sape/SapeConnection.java
index a15658fa..ee5a5e5c 100644
--- a/src/main/java/ru/sape/SapeConnection.java
+++ b/src/main/java/ru/sape/SapeConnection.java
@@ -11,6 +11,7 @@ import java.io.Reader;
import java.io.StringWriter;
import java.net.HttpURLConnection;
import java.net.URL;
+import java.nio.charset.StandardCharsets;
import java.util.*;
public class SapeConnection {
@@ -48,7 +49,7 @@ public class SapeConnection {
connection.setRequestMethod("GET");
connection.connect();
- r = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
+ r = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8));
StringWriter sw = new StringWriter();