title: How to convert windows-1250 to utf-16 using c#
body: <p>I am new at c#, I am having a problem with loading XML document which is encoded in windows-1250, and when I want to print the string loaded from that document I dont get chars such as Č,Ć,Š etc. I found out that, before printing, it has to be converted from string to unicode or utf to be able to print it normaly. So my main problem is how to convert a string encoding(from widnows-1250 to utf-16) to be able to print all of the missing letters. </p>
  
  <p>First XML line:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="windows-1250"?&gt; 
  </code></pre>
  
  <p>Code for loading xml file:</p>
  
  <pre><code>XDocument doc = XDocument.Load(path);
  var items = doc.Descendants("item");
  foreach (var item in items)
  {
      for (i = 0; i &lt; keyWords.Count; i++ )
      {
          if (item.Value.Contains(keyWords[i])) 
          {
              vestiSaPodudaranjima.Add(item.Value);
              Console.WriteLine(item.Value);
              break;
          }
      }
  }    
  </code></pre>