Create a UnicodeEncoding to support little-endian byte ordering and include the Unicode byte order mark
Imports System Imports System.Text Class UnicodeEncodingExample Public Shared Sub Main() Dim unicodeLittleEndianBOM As New UnicodeEncoding(False, True) End Sub End Class