I have a StreamReader
reading a file like below for reading a .csv
file:
using (StreamReader sr = new StreamReader(filePath, System.Text.Encoding.GetEncoding("iso-8859-1")))
{
string line = string.Empty;
line = sr.ReadLine()
}
The first line of the file is: å ä ö Ü
(for testing purposes). However, when I try to read the file C# does not read the characters as it should:
Any idea why that is?