Encoding-Sensitive C# Constructor
using System.IO
public StreamReader(Stream stream);
public StreamReader(string path);
public StreamReader(Stream stream, Encoding encoding);
public StreamReader(Stream stream, bool detectEncodingFromByteOrderMarks);
public StreamReader(string path, bool detectEncodingFromByteOrderMarks);
public StreamReader(string path, Encoding encoding);
public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks);
public StreamReader(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks);
public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize);
public StreamReader(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize);
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.
C# Encoding Information
|