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

Weird error decompressing in base64 #1

Open
zahlenteufel opened this issue Dec 4, 2014 · 1 comment
Open

Weird error decompressing in base64 #1

zahlenteufel opened this issue Dec 4, 2014 · 1 comment

Comments

@zahlenteufel
Copy link

Hi,
When I execute in python

a = "N4IgKgTglghgNgBQPZQHYBcQC4DaOCMALPgOwn4AcJFhAnAMwkA0IAVOwAQDK6ME6HdNHgd2rEAF0JAXyAA="
x = lzstring.LZString()
x.decompresFromBase64(a)

it throws me the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "lzstring.py", line 578, in decompresFromBase64
    output += chr(output_ | chr2)
ValueError: chr() arg not in range(256)

But in the javascript implementation it decodes it perfectly.

@eduardtomasek
Copy link
Owner

Sorry, I did not be here for long time. I tried decompress your string and result is {'TrialPoint': [[1417718784937, '*** Start trial ***']]}. Is it correct?

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

No branches or pull requests

2 participants