For HTTP upload of text files which have been created with the current OS locale, I would like to generate a header like
Content-Type: text/plain; charset=iso-8859-2
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?
You can use GetLocaleInfo to get the charset info.