pull/475/head
gedoor 4 years ago
parent bb3623b87b
commit 021ebb6416
  1. 3
      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

Loading…
Cancel
Save