Comments (7)
Yeah, looking at this, it appears as though Archive is working with ascii strings as opposed to utf8 encoded strings.
OEBPS/Mentor-and-Protégé.html
as opposed to
OEBPS/Mentor-and-Protégé.html
I'm not sure if this is a problem with archive
itself or the software that originally created the epub.
My understanding of zip files is that they write the file headers as a raw byte array and it is up to the unzip library to properly handle the different encodings (but it has been a while since I've looked at the zip specification)
from dart-epub.
Just looked at the latest version number, it's >2... and epub uses 1.0.33, version incompatibility issue?
from dart-epub.
I'll upgrade locally and see if it fixes the issue.
Edit: What version were you seeing this in? The latest version of epub
uses version ^2.0.0
of archive
Edit2: Tried locally with archive 2.0.2 and the error persists.
from dart-epub.
I'll take a look at fixing archive to handle these filenames.
from dart-epub.
I pushed archive 2.0.3 that should fix this problem by reading filename strings as utf8.
from dart-epub.
And making sure that the EpubReader
class always reads as utf8 should fix this.
I have a small feeling it'll cause some other issues (like even weirder characters that only appear in unicode), but it'll work for now, I guess
from dart-epub.
Thanks @brendan-duncan for the new version! I just pub upgrade
'd and the epub @ShadowJonathan attached opens now.
I'll add a few more tests to the library to put the attached epub through its paces. Thanks!
from dart-epub.
Related Issues (20)
- Exception: Incorrect EPUB spine: TOC is missing HOT 2
- dart-epub needs to be updated to support the latest flutter_test HOT 4
- Extract Epub Content
- Any chance of making a Flutter Widget view of these epubs? HOT 1
- reading epub file is slow and take a lot of time HOT 1
- Epub parsing error when href is a ralative path
- How to Add Page Number ?
- Epub reader with highlights HOT 1
- Take more than 10 second to read an epub that 8MB HOT 2
- parse fail when 'contentFileName' contain urlencoded coding
- Error when opening epub 3 file.
- update pubspec
- Mismatched hashcodes
- Trouble with loading cover images. HOT 2
- Epub book read-write then read again => "EPUB parsing error: root file not found in archive."
- XML dependency HOT 2
- Null safety support HOT 2
- Where to put epub?
- Create epub from folder
- NNBD and more darty api HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-epub.