This post contain information how you could integrate JavaScript LZW algorithms with other platforms like Java.
I will describe what need to be done in order to successfully compress string (including international characters) and decompress it using Java.