better UI, +windows1251 encoding support
This commit is contained in:
1 parent
ddf68c1e6a
commit
da88a6e221
15 files changed
+407
-14
No files matched your search
@@ -20,7 +20,7 @@ The common API is `Fb2Format.parse(input: ByteArray, fileName: String? = null)`.
|
||||
Import detection:
|
||||
|
||||
- A file is treated as ZIP when its bytes start with the ZIP local-file signature `PK\003\004` or the provided filename ends with `.zip`.
|
||||
- Otherwise bytes are decoded as UTF-8 XML.
|
||||
- Otherwise bytes are decoded according to the XML declaration when supported. UTF-8 is the default, and unsupported or missing encodings fall back to UTF-8. `windows-1251` is supported for legacy FB2 files.
|
||||
- In ZIP archives, the first entry ending with `.fb2` is used. If no such entry exists, the first non-directory entry is used.
|
||||
|
||||
ZIP support:
|
||||
|
||||
Reference in new issue
Block a user