Encoding.BigEndianUnicode.GetString : Encode « File Stream « C# / C Sharp






Encoding.BigEndianUnicode.GetString

 
using System;
using System.Text;

class StringEncodingApp {
    static void Main(string[] args) {
        byte[] bb = new byte[] { 0, 72, 0, 101, 0, 108, 0, 108, 0, 111 };
        string t = Encoding.BigEndianUnicode.GetString(bb);
        Console.WriteLine(t);
    }
}

 








Related examples in the same category

1.Convert Byte array to Base64 Char ArrayConvert Byte array to Base64 Char Array
2.Encoding in actionEncoding in action
3.Encoding: Unicode ASCII GetBytes GetString
4.Encoding.ASCII.GetString
5.Encoding.URF8/Unicode/UTF32/.GetBytes
6.Encoding.URF8/Unicode/UTF32/GetString