This post contain information how you could integrate JavaScript Deflate algorithms with other platforms like Java.
I will describe what need to be done in order to successfully compress string (even with non-ASCII) characters and decompress it using Java. So lets start.