I'm using a StreamReader to process files from different countries in this simple way:
However the reader just ignores non-standard characters such as Ø in Danish for example. These are treated by the reader as if they do not exist. If I change the Encoding type to ASCII they are replaced by question marks and in unicode cause an error.
The program needs to run on a British server and process files from several different European countries.
Any ideas please?
Code:
StreamReader sr = new StreamReader(@"c:\test",System.Text.Encoding.UTF8);
while((row=sr.ReadLine()) != null)
{
//process the line
}
sr.Close();
The program needs to run on a British server and process files from several different European countries.
Any ideas please?