title: Localized encoding name in .NET 4.0
body: <p>How do I get a localized encoding name in .Net framework version 4.0?</p>
  
  <p>When running on a Japanese computer (regional settings)</p>
  
  <p>this line of code:</p>
  
  <pre><code>Encoding.GetEncodings()[0].DisplayName
  </code></pre>
  
  <p>when running in .Net 2, returns the string "IBM EBCDIC (US - カナダ)"</p>
  
  <p>when running in .Net 4, returns the string "IBM EBCDIC (US-Canada)"</p>
  
  <p>The current culture is "ja-JP" in both cases.</p>