Internationalization and localization tools


Encoding-Sensitive VB.NET Constructor

using System.IO

Public Sub New(stream As Stream)
Public Sub New(path As String)
Public Sub New(stream As Stream, encoding As Encoding)

Public Sub New(stream As Stream, detectEncodingFromByteOrderMarks As Boolean)

Public Sub New(path As String, detectEncodingFromByteOrderMarks As Boolean)

Public Sub New(path As String, encoding As Encoding)

Public Sub New(stream As Stream, encoding As Encoding, detectEncodingFromByteOrderMarks As Boolean)

Public Sub New(path As String, encoding As Encoding, detectEncodingFromByteOrderMarks As Boolean)

Public Sub New(stream As Stream, encoding As Encoding, detectEncodingFromByteOrderMarks As Boolean, bufferSize As Integer)

Public Sub New(path As String, encoding As Encoding, detectEncodingFromByteOrderMarks As Boolean, bufferSize As Integer)

Internationalization (I18n) Class Overview

The StreamReader constructor method creates a TextReader that reads characters from a byte stream in a particular encoding.

For more information see Microsoft's MSDN online documentation.

I18n Issues

Since the StreamReader defaults to UTF-8 encoding, it is typically safe, but Globalyzer catches it so the user can verify that it is indeed set correctly. If you determine that it does not pose any i18n problems, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.

VB.NET Encoding Information

 

Lingoport internationalization and localization services and software