Coder Social home page Coder Social logo

Comments (4)

pieroxy avatar pieroxy commented on June 3, 2024

Please do not use the compress method, which produces an output that cannot be reliably stored in some some browsers, as specified in the documentation. Use compressToUTF16 instead (and decompressFromUTF16 to decompress)

from lz-string.

norangit avatar norangit commented on June 3, 2024

got it. thanks very much!

from lz-string.

yarden-app avatar yarden-app commented on June 3, 2024

I have had issues with UTF16,

check this issue:

#92

from lz-string.

pieroxy avatar pieroxy commented on June 3, 2024

@yarden-app There is no issue with compressToUTF16 if you feed decompress with the exact output of compress. If, however, you convert that UTF16 to something else, such as UTF8 then back to UTF16, chances are the UTF16 string you get back is not what you had in the beginning, so obviously you cannot decompress it.

from lz-string.

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.