What’s my Encoding Called?

There is a bit of confusion about the System.Text.Encoding names, primarily “Which name do I use for my Encoding?” The Encoding class has 3 hame properties: BodyName, WebName and HeaderName, and the EncodingInfo objects returned by Encoding.GetEncodings have an additional Name property.  The examples in the MSDN documentation list a table. EncodingInfo   EncodingName           CodePage  BodyName      HeaderName     WebName        EncodingNameshift_jis      932       iso-2022-jp   iso-2022-jp    shift_jis      Japanese (Shift-JIS)windows-1250   1250      iso-8859-2    windows-1250  …


Custom Locales vs Custom Cultures in Windows Vista / .Net Framework

When a Custom Culture is created in .Net it is used by Vista as well as a Custom Locale.  There are some disparities between the data available to the Framework and the Windows OS, causing a few edge cases. Additionally some information is available in a shipped locale that the .Net Framework cannot currently modify. …


Custom and Synthetic (Windows ELK) RegionInfos in .Net 2.0

When we ship the Microsoft .Net Framework, the culture data associated with that version is fixed.  In Windows XP we have shipped additional locales (ELKs) that are not native to the Framework.  Windows Vista also includes a superset of the locales in the Framework.  In v2.0 of the framework we added the ability for the framework…


Why and How I Chose Klingon for an Example

This isn’t really a technical post, but some may be curious about why I chose Klingon for my example about making a custom culture/locale and Microsoft LDML.  I hope that other people will make their own custom cultures/locales for their own languages/countries. FWIW: I don’t go around work wearing a Klingon mask and I don’t…