Skip to content

Weird error decompressing in base64 #1

Description

@zahlenteufel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions