pull/84/head
kunfei 5 years ago
parent 2aa0be91ea
commit 9070f610ec
  1. 4
      app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt

@ -29,8 +29,8 @@ object AnalyzeTxtFile {
fun analyze(context: Context, book: Book): ArrayList<BookChapter> {
val bookFile = getBookFile(context, book)
val charset = charset(EncodingDetect.getEncode(bookFile))
book.charset = charset.name()
book.charset = EncodingDetect.getEncode(bookFile)
val charset = book.getCharset()
val toc = arrayListOf<BookChapter>()
//获取文件流
val bookStream = RandomAccessFile(bookFile, "r")

Loading…
Cancel
Save