I have a file which contains letter ø. When I read from it with this code File.ReadLines(filePath) I got a question mark instead of it.
And when I add Encoding like this File.ReadLines(filePath, Encoding.GetEncoding(1252)) I get the ø character.
But default Encoding is already set to 1252, property Encoding.Default.CodePage returns 1252.
So why do I have to specify Encoding to 1252 while reading, when default one is already set to 1252?
And one more question, what if file is Unicode, will C# recognize its format or I have to specify Unicode encoding?