File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/io/dutwrapper/dutwrapper Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ private static ArrayList<NewsItem> getNews(
337337 newsType == null ? NewsType .Global .toString () : newsType .toString (),
338338 page == null ? 1 : page ,
339339 searchType == null ? NewsSearchType .ByTitle .toString () : searchType .toString (),
340- URLEncoder .encode (searchQuery == null ? "" : searchQuery , StandardCharsets . UTF_8 . toString () ));
340+ URLEncoder .encode (searchQuery == null ? "" : searchQuery , "UTF-8" ));
341341
342342 HttpClientWrapper .Response response = HttpClientWrapper .get (url , null , 60 );
343343 response .throwExceptionIfExist ();
@@ -352,7 +352,7 @@ private static ArrayList<NewsItem> getNews(
352352 }
353353
354354 Document webData = Jsoup .parse (response .getContent ());
355- webData .outputSettings ().charset (StandardCharsets . UTF_8 );
355+ webData .outputSettings ().charset ("UTF-8" );
356356 for (Element el : webData .getElementsByTag ("br" )) {
357357 el .remove ();
358358 }
You can’t perform that action at this time.
0 commit comments