Use UnicodeEncoding : UnicodeEncoding : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » UnicodeEncoding »

 

Use UnicodeEncoding








    


using System;
using System.Text;

class StringEncodingApp {
    static void Main(string[] args) {
        ASCIIEncoding ae = new ASCIIEncoding();
        Console.WriteLine(ae.GetString(new byte[]{1,2,3}));
        UnicodeEncoding bu = new UnicodeEncoding(true, false);
        Console.WriteLine(bu.GetString(new byte[]{1,2,3}));
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» UnicodeEncoding