Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non utf file names fix #24

Open
wants to merge 66 commits into
base: dev
Choose a base branch
from
Open

Non utf file names fix #24

wants to merge 66 commits into from

Conversation

NedoPrograMax
Copy link

I struggled with issue that some epubs just won't open 😥
The only error I got was "illegal percent encoding".

The problem was that all images in epub had cyrillic names, so Dart Uri.decodeFull() method throwed an Exception becouse it doesn't allow characters with unicode > 127
So I just found a function Uri.encodeComponent() that is able to encode those names and make them valid

Now the book is being parsed correctly, and becouse I'm using epub_view package I can see that all images also display the way they have to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant