decode Summary Decodes UTF-16 encoded text. Usage public static string decode(byte[] utf16EncodedData) Returns The decoded text. Parameters utf16EncodedData The UTF-16 encoded byte sequence to decode. Description Decodes UTF-16 encoded text. This decoding method supports both little endian- and big endian-encoded input byte sequences. If the byte order mark (BOM) is not provided in the first two bytes, this method will default to little endian decoding. Examples Basic Usage 1234567import System;import System.Encoding; byte[] encoded = [ 0xFF, 0xFE, 0xAC, 0x20 ];string decoded = UTF16.decode(encoded); Console.log(decoded); // "�" Share HTML | BBCode | Direct Link