title: Setting encoding in XML files
body: <p>Which are the valid xml encoding strings? For instance, what is the way of specifying UTF-8:</p>
  
  <ul>
  <li><code>encoding="utf8"</code></li>
  <li><code>encoding="utf8"</code></li>
  <li>etc</li>
  </ul>
  
  <p>Or Windows 1251:</p>
  
  <ul>
  <li><code>encoding="windows-1251"</code></li>
  <li><code>encoding="windows1251"</code></li>
  <li><code>encoding="cp-1251"</code></li>
  <li>etc.</li>
  </ul>
  
  <p>I am making a character decoder as well as a xml parser. Thus, I need to be able to set the encoding of my StreamReader based on the value from the encoding attribute.</p>
  
  <p>Any ideas where I could find a list of the official encoding string?</p>
  
  <p>The best I could find is <a href="http://msdn.microsoft.com/en-us/library/aa752010.aspx" rel="nofollow">this</a>, but it seems to be IE specific.</p>
  
  <p>Thanks!</p>