Hi Raj,
In the web protocol you can specify during the code gerneation to support UTF-8 which will be applied to the replay as well.
About the compression, there is a KB article about zlib and how the decompress and compress using that library, but if you got a different compression, you could try creating DFE extension and use that DFE extention to user own usage.