Hmmm - no offense, but that sounds kind of backwards. The new String(byte[], String) constructor does convert
to different encodings - it converts
from different encodings of bytes,
to a statndard
Java String consisting of a sequence of chars whose numeric values are interpreted as Unicode. Strings do not have encodings; bytes have encodings. So if you've got an array of bytes, you need to find out what one encoding was used to generate the bytes in the array. Then you can use that encoding in the new String(byte[], String) constructor to get a String. If you then wish to convert that String to bytes, using some
other encoding, then you can use getBytes(String) - naming whatever encoding you want.