Coder Social home page Coder Social logo

Comments (7)

orthros avatar orthros commented on September 22, 2024

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.

ShadowJonathan avatar ShadowJonathan commented on September 22, 2024

Just looked at the latest version number, it's >2... and epub uses 1.0.33, version incompatibility issue?

from dart-epub.

orthros avatar orthros commented on September 22, 2024

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.

brendan-duncan avatar brendan-duncan commented on September 22, 2024

I'll take a look at fixing archive to handle these filenames.

from dart-epub.

brendan-duncan avatar brendan-duncan commented on September 22, 2024

I pushed archive 2.0.3 that should fix this problem by reading filename strings as utf8.

from dart-epub.

ShadowJonathan avatar ShadowJonathan commented on September 22, 2024

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.

orthros avatar orthros commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.