Encoding.BigEndianUnicode : Encoding « System.Text « C# / C Sharp by API






Encoding.BigEndianUnicode

  
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.Encoding.ASCII
2.Encoding.GetEncoding(1252)
3.Encoding.UTF32
4.Encoding.UTF8
5.Encoding.Unicode