What is the best way to convert an array of bytes declared as TBytes to a unicode string in Delphi 2009? In my particular case, the TBytes array has UTF-16 encoded data alre
If your TBytes contains UTF-16 characters, look at WideStringOf and WideBytesOf.
StringOf converts TBytes to a UnicodeString. BytesOf converts a UnicodeString to TBytes.
I ended up using
TEncoding.Unicode.GetString( MyByteArray );