Giter Club home page Giter Club logo

Comments (10)

mertakdut avatar mertakdut commented on August 14, 2024

19? What version is that? Api level?

from epubparser.

chintandesai49 avatar chintandesai49 commented on August 14, 2024

Yes, API level 19 version name KitKat. And I'm loading epub in webview.

from epubparser.

chintandesai49 avatar chintandesai49 commented on August 14, 2024

The problem lies in ContextHelper class where you encode text to UTF-8 with java. But the StandardCharsets class of java is not available below android KitKat version 19.

from epubparser.

mertakdut avatar mertakdut commented on August 14, 2024

StandardCharsets is available since 1.7. Does Android KitKat use 1.6? Or should you use 1.7 when you are developing your app?

from epubparser.

chintandesai49 avatar chintandesai49 commented on August 14, 2024

In KitKat, it is working as expected,but not below the version. So now what is the port to user this library below KitKat version ?

from epubparser.

mertakdut avatar mertakdut commented on August 14, 2024

I'll check the problem myself and see if I find a reasonable solution. Thanks for the notice.

from epubparser.

chintandesai49 avatar chintandesai49 commented on August 14, 2024

I make it work my way but I can tell you that you can make version specific check and put simple condition in ContextHelper class like this.
if(version<19)
encodedString = URLDecoder.decode(stringToEncode, "UTF_8");
else
encodedString = URLDecoder.decode(stringToEncode, StandardCharsets.UTF_8.name());

from epubparser.

mertakdut avatar mertakdut commented on August 14, 2024

That may not be the only thing that is broken in versions below 19. Is it?

from epubparser.

chintandesai49 avatar chintandesai49 commented on August 14, 2024

Yes, I make it work only by putting version specified checking. But you are the author of the library, it's your call to check another condition.

from epubparser.

mertakdut avatar mertakdut commented on August 14, 2024

The problem is fixed in version 1.0.85, released in few hours. Thanks for your cooperation.

from epubparser.

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.