Closed login-name closed 8 months ago
Sharing sample screenshot below
v1 decompression method showing replacement character in below screenshot
v3 decompression method working fine without showing replacement character in below screenshot though input compressed data is same for both of them
This is not a zlib issue. Try posting your question on stackoverflow.com.
Issue: Replacement character � happening in decompression for non english languages Environment:We have agent-server comunication. Agent is installed in laptops and sends data to server. Agent uses C/C++ while server uses Java For non english customers we face replacement characters getting printed during decompression in Java while its working fine in agent side. We have found a fix by implementing version 3 shown in below code. But we are not able to understand why it's fixing the issue. Could you please explain why its working. Below are 3 versions of the decompression code in java using zlib and how it gives output. 1 shows lots of replacement characters 2 elminated replacement character for JSON data while still remaining for XML format 3 elminate replacement character completely Based on searching online all 3 versions of the code looks like valid form of decompression of zlib in java Could you please share if any difference between that i'm understanding incorrectly. Please do DM me privately coconutrange@gmail.com I will share the sample data output for each of these versions since I would like to not share the data publicly. Or let me know your mailID I'll share the data in there