title: How to read Cyrillic symbols from a .txt file with C#
body: <p>I saw similar topics but could not find a solution. My problem is that I have a .txt file in which the symbols are in Bulgarian language / which is Cyrillic /, but after trying to read them, there is no sucess. I tried to read with this code:</p>
  
  <pre><code>StreamReader reader = new StreamReader(fileName,Encoding.UTF8);
  
  if (File.Exists(fileName))
  {
      while ((line = reader.ReadLine()) != null)
      {
          Console.WriteLine(line);
      }
  }
  </code></pre>
  
  <p>And I also changed the Encoding value to all possible , as I tried with GetEncoding(1251), which I wrote is for cyrillic. And when I save the .txt file I tried to save it with each different encoding which was there / UNICODE,UTF-8,BigEndianUnicode,ANSI / in each combination with the Encoding I am settin through the code, but again no success.</p>
  
  <p>Any ideas for how to read the cyrillic symbols in the right way will be appriciated.
  And here is sample text for this: "Ето примерен текст."</p>
  
  <p>Thanks in advance! :)</p>