I have a UTF8 encoded string, but I need to send parameters to the execution process in cp1251. How can I decode a String or byte array?
I need smth like :. bytesInCp1251 = encodeTo(stringInUtf8, "cp1251");
Thanks everyone! This is my own solution:
OutputStreamWriter writer = new OutputStreamWriter(out, "cp1251"); writer.write(s);
source share