From 021ebb6416a340424933bb6bfcc5043a70fe2ee3 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 12 Nov 2020 22:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/EncoderUtils.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/utils/EncoderUtils.kt b/app/src/main/java/io/legado/app/utils/EncoderUtils.kt index ffc569ab3..409cb802c 100644 --- a/app/src/main/java/io/legado/app/utils/EncoderUtils.kt +++ b/app/src/main/java/io/legado/app/utils/EncoderUtils.kt @@ -1,7 +1,6 @@ package io.legado.app.utils import android.util.Base64 -import java.nio.charset.StandardCharsets @Suppress("unused") object EncoderUtils { @@ -28,7 +27,7 @@ object EncoderUtils { @JvmOverloads fun base64Decode(str: String, flags: Int = Base64.DEFAULT): String { val bytes = Base64.decode(str, flags) - return String(bytes, StandardCharsets.UTF_8) + return String(bytes) } @JvmOverloads