Skip to content

Does this work with the current version? #14

@rohitsri74

Description

@rohitsri74

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

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