I have tried various flavors and all are giving giberish results. But the response on the browser looks fine. (clean json String)
FullHttpResponse response = (FullHttpResponse) msg;
byte[] bytes = new byte[response.content().readableBytes()];
response.content().readBytes(bytes);
String result = new String(bytes);
The other one I tried as suggested here is
response.content().toString(CharsetUtil.UTF_8);
Both are gibberish like this
P.S: I use HttpObjectAggregator and HttpServerCodec in pipeline