Create UnicodeEncoding: using the big endian byte order and provide a Unicode byte order mark. : UnicodeEncoding « Internationalization I18N « C# / C Sharp






Create UnicodeEncoding: using the big endian byte order and provide a Unicode byte order mark.

 

using System;
using System.Text;

class UnicodeEncodingExample {
    public static void Main() {
        UnicodeEncoding unicode = new UnicodeEncoding();
        UnicodeEncoding unicodeLittleEndianBOM = new UnicodeEncoding(false, true);
        UnicodeEncoding unicodeLittleEndianNoBOM =new UnicodeEncoding(false, false);
        UnicodeEncoding unicodeBigEndianBOM =new UnicodeEncoding(true, true);
        UnicodeEncoding unicodeBigEndianNoBOM =new UnicodeEncoding(true, false);
    }
}

   
  








Related examples in the same category

1.Use UnicodeEncoding
2.Get byte count from UnicodeEncoding
3.EncodingInfo Class provides basic information about an encoding.
4.UnicodeEncoding Class represents a UTF-16 encoding of Unicode characters.
5.Create UnicodeEncoding
6.Unicode version 2.0 character size in bytes.
7.Calculates the number of bytes produced by encoding a set of characters from the specified character array.
8.Calculates the number of bytes produced by encoding the characters in the specified String.
9.Encodes a set of characters from the specified character array into the specified byte array.
10.Encodes a set of characters from the specified String into the specified byte array.
11.Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
12.Decodes a sequence of bytes from the specified byte array into the specified character array.
13.Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.
14.Calculates the maximum number of bytes produced by encoding the specified number of characters.
15.Calculates the maximum number of characters produced by decoding the specified number of bytes.
16.Returns a Unicode byte order mark encoded in UTF-16 format
17.Using Unicode Encoding