From 424abfdf1cbae3d291cbb89d6ffc90e826c5deeb Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 23 Feb 2022 19:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtxt=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/localBook/TextFile.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/localBook/TextFile.kt b/app/src/main/java/io/legado/app/model/localBook/TextFile.kt index 00d0bed61..300ee982c 100644 --- a/app/src/main/java/io/legado/app/model/localBook/TextFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/TextFile.kt @@ -70,7 +70,6 @@ class TextFile(private val book: Book) { if (book.tocUrl.isBlank()) { if (blockContent.isEmpty()) { length = bis.read(buffer) - book.charset = EncodingDetect.getEncode(buffer) blockContent = String(buffer, 0, length, charset) } book.tocUrl = getTocRule(blockContent)?.pattern() ?: ""