Converting byteArray in UTF-16 format to String or character.
posted 8 years ago
I invoke a webservice which returns the data in a byte array but in UTF-16 format with every character stored in two consecutive bytes. Thus the first character in the data would be stored in arr and arr, with the more significant byte stored in arr. I need to convert this byte Array into a String.