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

Does this work with the current version? #14

Open
rohitsri74 opened this issue Apr 29, 2015 · 0 comments
Open

Does this work with the current version? #14

rohitsri74 opened this issue Apr 29, 2015 · 0 comments

Comments

@rohitsri74
Copy link

import lzstring

x = lzstring.LZString()

print x.compressToBase64("Dak0tajdjdjdddddddddddddddddddddddd")

Error:
Traceback (most recent call last):
File "try.py", line 5, in
print x.compressToBase64("Dak0tajdjdjdddddddddddddddddddddddd")
File "/home/solstice/lzstring.py", line 256, in compressToBase64
string = self.compress(string)
File "/home/solstice/lzstring.py", line 64, in compress
context_data_string += chr(context_data_val)
ValueError: chr() arg not in range(256)

the context_data_val is 2180 at this point!!

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

1 participant