lz-string-php icon indicating copy to clipboard operation
lz-string-php copied to clipboard

Fail to compressToBase64 in php and decompress in javascript

Open freemaths opened this issue 6 years ago • 0 comments

Compressing in php with: \LZCompressor\LZString::compressToBase64("test string"); Compressed data: C4UwzsAEEE4JYDsDmQ==

Fails to decompress in javascript: LZUTF8.decompress("C4UwzsAEEE4JYDsDmQ==",{inputEncoding:"Base64"}) Decompressed data: �0�N `;�

Presumably incompatible with latest npm version (using latest lzutf8 v 0.5.5) https://www.npmjs.com/package/lzutf8

freemaths avatar Oct 28 '18 18:10 freemaths