From the docs, Encode should provide a way to convert bytes to a string and back again. However, this test case gives very different results after the decode. The input data 'bytes' is 6 elements, but the output data 'outputData' is 17 elements. Why is this?
byte[] bytes = new byte[] { 24, 48, 49, 127, 250, 255, 1 };
char[] charData = Encoding.UTF7.GetChars(bytes);
byte[] outputData = Encoding.UTF7.GetBytes(charData);
Encoding.UTF8.GetBytes(charData);shows this.