eduardtomasek / lz-string-python

lz-string for python 3
Do What The F*ck You Want To Public License
31 stars 42 forks source link

Does this work with the current version? #14

Open rohitsri74 opened 9 years ago

rohitsri74 commented 9 years ago

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!!