as the title suggest, I have a problem with my c# code not reading files correctly, because when I try to read characters from file such as: č, ć, š, đ, ž, etc., I get �. I need my program to be able to read all characters even from other languages. I also tried using Encoding parameter with UTF-8 and Default but that also didn't work. Below is an example of code.
string[] lines = File.ReadAllLines(filePath, Encoding.UTF8);
CodePagesEncodingProvider.Instance.GetEncoding(1250))