Encoding to 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);
    }
}

Share Article/Example:
  • DotNetKicks
  • DZone
  • StumbleUpon
  • Print
  • Add to favorites
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • LinkedIn
  • Posterous
  • Slashdot

Filed Under: C# Streams Examples

RSSComments (0)

Trackback URL

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.