From df219a9453793800f3389e98c95206d13587d8ae Mon Sep 17 00:00:00 2001 From: wb9688 Date: Sun, 1 Mar 2020 09:41:06 +0100 Subject: [PATCH] Don't use StandardCharsets class --- .../services/youtube/linkHandler/YoutubeParsingHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeParsingHelper.java index 643a63138..1c603f5b2 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeParsingHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeParsingHelper.java @@ -20,7 +20,6 @@ import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URL; import java.net.URLDecoder; -import java.nio.charset.StandardCharsets; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; @@ -279,7 +278,7 @@ public class YoutubeParsingHelper { if (param.split("=")[0].equals("q")) { String url; try { - url = URLDecoder.decode(param.split("=")[1], StandardCharsets.UTF_8.name()); + url = URLDecoder.decode(param.split("=")[1], "UTF-8"); } catch (UnsupportedEncodingException e) { return null; }