ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
GZIPOutputStream zip = new GZIPOutputStream(outputStream);
// System.out.println(new String(chars));
Charset charset = Charset.forName(Application.CHARSET);
CharsEncoder encoder = new CharsEncoder(charset, charset.name());
// zip.write(new String(chars).getBytes(Application.CHARSET));
zip.write(encoder.encode(chars, 0, chars.length));
zip.close();
value = null;
byteValue = outputStream.toByteArray();