title: How do I get a HTTP charset name from current Windows locale?
body: <p>For HTTP upload of text files which have been created with the current OS locale, I would like to generate a header like</p>
  
  <pre><code>Content-Type: text/plain; charset=iso-8859-2
  </code></pre>
  
  <p>to allow the server proper processing of the text. Is there a Windows API function which returns the charset string for a given locale id?</p>