title: How do I convert "byte gdicharset" to the name of the script/language?
body: <p>The FontDialog class in C# has a property "AllowScriptChange" that lets the user select the script (Western, Hebrew, Arabic, Turkish, etc).  When enabled, the dropdown box provides all those options and whatever else is available depending on the font selected.</p>
  
  <p>If the dialog is successful, the font selected has GdiCharSet set a value from 0-255.  177 is Hebrew, 161 is Greek, etc.  Is there a function that will convert from value to string?  I can write a switch statement myself but I'd like to do it The Right Way.</p>
  
  <p>This is a partial list: <a href="http://msdn.microsoft.com/en-us/library/cc194829.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/cc194829.aspx</a></p>
  
  <p><strong>Edit</strong>: A function that will convert from CharSet to codepage would work, too, because I think that getting the name of a codepage should be easy.</p>