diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index 6c2d82bbd..fb547c7ec 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -280,7 +280,7 @@ interface JsExtensions { val oldCode = s.toInt() if (oldCode in start until end) { val code = font2.GetCodeByGlyf(font1.GetGlyfByCode(oldCode)) - contentArray[index] = code.toChar() + if(code != 0) contentArray[index] = code.toChar() } } return contentArray.joinToString("")