java – Third party library for changing string encoding in Android


There is an Android application that communicates with the server. The server understands strings in the "CP866" encoding. The familiar design works great:

String string = new String(bytes, 0, bytes.length, "866");

However, not all devices support this encoding. How to be in this situation? Are there any third party libraries for encoding strings?


You need a custom CharsetProvider that supports 866 encoding

You need to look for the providers of the corresponding codepage

A short googling took me to JCharset – not sure if it supports 866, but nothing prevents you from continuing to google it.

Scroll to Top