title: Decoding Cyrillic data from Windows-1251 to ISO-8859-1
body: <p>I have an old database with some columns containing Cyrillic data, which is not readable and require conversion. As a trial I wrote following code but result is not what I expected. Can someone please point out the issue and/or advise how the data can be converted? </p>
  
  <pre><code>using System;
  using System.Text;
  using System.Windows.Forms;
  
  namespace ConvertEncoding
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
          Encoding cp1251 = Encoding.GetEncoding("windows-1251");
          Encoding iso8859 = Encoding.GetEncoding("iso-8859-1");
  
          private void button1_Click(object sender, EventArgs e)
          {
              byte[] cp1251Bytes = cp1251.GetBytes("Ñîáëþäåíèå ïðàâ äåòåé â äåòñêèõ äîìàõ Êûðãûçñêîé Ðåñïóáëèêè");
              byte[] iso8859Bytes = Encoding.Convert(cp1251, iso8859, cp1251Bytes);
              string iso8859String = iso8859.GetString(iso8859Bytes);
              label1.Text = iso8859String;
              // Sample Cyrillic text should convert to: 
              // Соблюдение прав детей в детских домах Кыргызской Республики
          }
      }
  }
  </code></pre>