pull/466/head
gedoor 4 years ago
parent f230a86d12
commit 768bb8bdc3
  1. 4
      app/src/main/java/io/legado/app/utils/EncoderUtils.kt

@ -25,8 +25,8 @@ object EncoderUtils {
return tmp.toString() return tmp.toString()
} }
fun base64Decode(str: String): String { fun base64Decode(str: String, flags: Int = Base64.DEFAULT): String {
val bytes = Base64.decode(str, Base64.DEFAULT) val bytes = Base64.decode(str, flags)
return try { return try {
String(bytes, StandardCharsets.UTF_8) String(bytes, StandardCharsets.UTF_8)
} catch (e: Exception) { } catch (e: Exception) {

Loading…
Cancel
Save