B
bart.kowalski
I'm trying to read a text file that contains international
(specifically Polish) characters line by line. I'm using the following
C# code:
FileStream lStream = new FileStream(pFileName, FileMode.Open);
using (StreamReader lReader = new StreamReader(lStream))
{
string lLine;
while ((lLine = lReader.ReadLine()) != null)
ProcessLine(/* blah..blah */);
}
The problem is that all Polish characters are missing. It doesn't even
show them incorrectly. It just completely drops the Polish chars and
the string is shorter than expected as a result. Does anyone know how
to fix this?
(specifically Polish) characters line by line. I'm using the following
C# code:
FileStream lStream = new FileStream(pFileName, FileMode.Open);
using (StreamReader lReader = new StreamReader(lStream))
{
string lLine;
while ((lLine = lReader.ReadLine()) != null)
ProcessLine(/* blah..blah */);
}
The problem is that all Polish characters are missing. It doesn't even
show them incorrectly. It just completely drops the Polish chars and
the string is shorter than expected as a result. Does anyone know how
to fix this?