We try to convert from string to Byte[]
using the following Java code:
String source = "0123456789";
byte[] byteArray = source.getBytes("UTF-16");
We get a byte array of length 22 bytes, we are not sure where this padding comes from. How do I get an array of length 20?