Sign in
I'm not a Klingon (
)
Shawn Steele's thoughts about Windows and .Net Framework globalization APIs
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
AppBar
Custom Cultures / Locales / CultureInfo
Dates & Times
eMail Address Internationalization
IDN (Internationalized Domain Names)
Klingon
Lego
Media Center
Pages
Sailing
Silverlight
sorting
System.Text
Unicode and Code Pages/Encodings
Windows Home Server
Archive
Archives
May 2013
(2)
April 2013
(2)
January 2013
(1)
November 2012
(1)
July 2012
(2)
June 2012
(8)
November 2011
(3)
March 2011
(2)
January 2011
(1)
December 2010
(2)
October 2010
(2)
September 2010
(1)
July 2010
(1)
May 2010
(2)
February 2010
(2)
January 2010
(2)
November 2009
(2)
October 2009
(2)
September 2009
(3)
August 2009
(3)
July 2009
(1)
June 2009
(3)
May 2009
(4)
November 2008
(1)
September 2008
(8)
August 2008
(1)
July 2008
(1)
June 2008
(2)
May 2008
(1)
April 2008
(2)
March 2008
(3)
January 2008
(1)
December 2007
(3)
November 2007
(1)
October 2007
(1)
September 2007
(1)
August 2007
(2)
July 2007
(4)
June 2007
(6)
May 2007
(5)
April 2007
(3)
March 2007
(8)
February 2007
(5)
January 2007
(2)
December 2006
(1)
November 2006
(3)
October 2006
(4)
September 2006
(7)
August 2006
(5)
July 2006
(3)
June 2006
(8)
May 2006
(2)
April 2006
(1)
March 2006
(1)
February 2006
(4)
January 2006
(4)
December 2005
(5)
November 2005
(2)
October 2005
(1)
September 2005
(2)
August 2005
(3)
May 2005
(1)
April 2005
(2)
March 2005
(17)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
I'm not a Klingon (
)
First day of week and the Vista Calendar Gadget
Posted
over 6 years ago
by
Shawn Steele - MSFT
29
Comments
A user asked how to make the first day of the week on the Vista Calendar gadget a Monday because they're from Bulgaria and used to Monday as the first day of the week. (Personally I think Sundays a strange "1st" day too, but that's a digression) The...
I'm not a Klingon (
)
Problems compiling resources in .Net 2.0 apps after updates.
Posted
over 7 years ago
by
Shawn Steele - MSFT
15
Comments
[10 July 2007] The security patch of 10 July 2007 http://www.microsoft.com/technet/security/Bulletin/ms07-040.mspx changes culture names to use the new names on Windows XP/2003/2000 as well as Vista. In order to conform to RFC 4646 (replaces RFC 3066...
I'm not a Klingon (
)
Windows Vista Microsoft Locale Builder Tool
Posted
over 7 years ago
by
Shawn Steele - MSFT
15
Comments
We're working on a tool, the Microsoft Locale Builder, for Windows Vista to help users create their own custom locales. This will help those users that need a tool rather than a managed API to create a custom locale. I'll post a link to the public...
I'm not a Klingon (
)
ISO 8601 Week of Year format in Microsoft .Net
Posted
over 7 years ago
by
Shawn Steele - MSFT
13
Comments
Several people have noticed that Calendar.GetWeekOfYear() is almost like the ISO 8601 week when passed CalendarWeekRule.FirstFourDayWeek and DayOfWeek.Monday , however it is a little bit different. Specifically ISO 8601 always has 7 day weeks. If the...
I'm not a Klingon (
)
Klingon in pIqaD Windows Vista Custom Locale
Posted
over 7 years ago
by
Shawn Steele - MSFT
13
Comments
Use custom keyboards, locales, fonts and font linking to create a solution for complex custom locales. I use the made-up Klingon language and pIqad script for my example....
I'm not a Klingon (
)
Some Keyboards fail with ANSI applications on Windows Vista RTM.
Posted
over 6 years ago
by
Shawn Steele - MSFT
11
Comments
There's an unfortunate Windows Vista bug that causes keyboards to fail in ANSI applications. Its amusing in a sad sort of way since this bug missed about a dozen checks we have to make sure this kind of thing doesn't happen. Anyway, keyboards attached...
I'm not a Klingon (
)
When Does Someone Replace a Windows (or .Net) Locale?
Posted
over 7 years ago
by
Shawn Steele - MSFT
10
Comments
Windows Vista and .Net 2.0 support custom locales. A couple days ago Michael mentioned to me that people were wondering when someone would actually replace a built-in locale. For new custom locales, its fairly easy to see why people would want to make...
I'm not a Klingon (
)
Security patch MS07-040 for .Net 2.0 breaks some culture names for .Net 2.0 on Windows XP/2003/2000
Posted
over 6 years ago
by
Shawn Steele - MSFT
9
Comments
[12 July 2007] Updated with culture names on list of effected cultures The .Net patch of July 10th, ms07-049 http://www.microsoft.com/technet/security/Bulletin/ms07-040.mspx , changes culture names to use the new names on Windows XP/2003/2000 as well...
I'm not a Klingon (
)
Custom Locale Builder Tool Beta Now Available!
Posted
over 7 years ago
by
Shawn Steele - MSFT
7
Comments
[NOTE: 31 July 2007, the tool is available again at its new URL: http://www.microsoft.com/downloads/details.aspx?FamilyID=e4588c5e-8f21-45cc-b862-38df8d9bd528&displaylang=en ] The Microsoft Locale Builder Tool Beta 2 is now available for download...
I'm not a Klingon (
)
Change in .Net Framework Culture Names for Windows Vista
Posted
over 7 years ago
by
Shawn Steele - MSFT
7
Comments
We've changed the culture names for the .Net Framework in Windows Vista to match the locale names used in Vista, which were changed to be more like the IETF standard names. Previously .Net Framework 2.0 culture names looked like "language"-"country" or...
I'm not a Klingon (
)
Example of overriding your own Encoding.
Posted
over 7 years ago
by
Shawn Steele - MSFT
7
Comments
Previously I wrote about the Best Way to Make Your Own Encoding , but didn't include an example, so today I'm including an example of a replacement Encoding. I also included an EncoderFallback example, which replaces unknown characters with numerical...
I'm not a Klingon (
)
Vista changes .Net 2.0 Locale Names, sample work around custom cultures/locales
Posted
over 7 years ago
by
Shawn Steele - MSFT
7
Comments
[10 July 2007] The recent security patch to .Net changed the behavior on other Windows versions as well (XP, 2003, 2000). If your application still requires the old names this workaround might work for you. In order to follow RFC 4646 more closely...
I'm not a Klingon (
)
Best Fit in WideCharToMultiByte and System.Text.Encoding Should be Avoided
Posted
over 7 years ago
by
Shawn Steele - MSFT
7
Comments
Windows and the .Net Framework have the concept of "best-fit" behavior for code pages and encodings. Best fit can be interesting, but often its not a good idea. In WideCharToMultiByte() this behavior is controlled by a WC_NO_BEST_FIT_CHARS flag. In .Net...
I'm not a Klingon (
)
Custom Time Zones in Windows
Posted
over 7 years ago
by
Shawn Steele - MSFT
7
Comments
Someone asked about adding the "Olson" database of timezones to Windows, and I learned about tzedit.exe and the registry keys. Tzedit.exe is a simple tool that allows you to add or edit the time zone registry entries, which live in the registry at HKLM...
I'm not a Klingon (
)
Avoid treating binary data as a String.
Posted
over 8 years ago
by
Shawn Steele - MSFT
6
Comments
A common code snippet that I see is something that uses binary data as a String, something like: String myHash = "abcd\xD800"; String encrypted = Encoding.Default.GetString(byte[] encryptedData); encryptor.bytes[] = Encoding.Default.GetBytes("my key...
I'm not a Klingon (
)
Some custom locale examples.
Posted
over 7 years ago
by
Shawn Steele - MSFT
6
Comments
Here're some custom locale examples in various formats (1.8 MB .zipped download). These are to be used at your own risk. They are basically locales I used for testing and playing around with. They probably have serious errors and were basically selected...
I'm not a Klingon (
)
zh-Hans, zh-Hant and the "old" zh-CHS, zh-CHT
Posted
over 6 years ago
by
Shawn Steele - MSFT
6
Comments
With Windows Vista and Microsoft .Net 2.0 (MS07-040 security patch) and 3.0+, we've started to use the IETF standard "zh-Hans", and "zh-Hant" names for Chinese simplified and traditional. In windows the zh-CHS/zh-CHT names were never used because the...
I'm not a Klingon (
)
Thoughts About Email Addresses with EAI (Email Address Internationalization)
Posted
over 3 years ago
by
Shawn Steele - MSFT
6
Comments
The EAI Working Group ( http://datatracker.ietf.org/wg/eai/charter/ ) is making rapid progress toward standardizing Unicode email addresses. Unicode email addresses are a terrific feature for people in many countries that don't use Latin/ASCII as a native...
I'm not a Klingon (
)
Short Date Formats Don't Always Fit Neat Patterns
Posted
over 3 years ago
by
Shawn Steele - MSFT
5
Comments
I'm often asked something like "What's the date separator for locale XXX?" Well, not every locale fits our preconceived MM/dd/yyyy concepts. Some of the built-in values that developers may not expect: dd/MM yyyy -- 20/10 2010 -- This one has different...
I'm not a Klingon (
)
Posted
over 4 years ago
by
Shawn Steele - MSFT
5
Comments
A helpful reader pointed out I don't really know Klingon. PS. I just checked out your blog (very nice by the way, lots of stuff I need to read) and I noticed along the top of the page you have (jItlhInganbe') for "I'm not a Klingon"....
I'm not a Klingon (
)
Why can't we strip the diacritics?
Posted
over 6 years ago
by
Shawn Steele - MSFT
5
Comments
We have some "best-fit" behavior which we generally consider to be "bad". Any loss of data is generally a bad thing, so we recommend storing data in Unicode (so you don't lose anything). Assuming you can't use Unicode, why is it so bad to just make everything...
I'm not a Klingon (
)
CP 951 & HKSCS
Posted
over 6 years ago
by
Shawn Steele - MSFT
5
Comments
(Note that this happened before I started owning code pages, so I might be a bit confused about parts of this). Support for HKSCS is now through Unicode 5. There's a download available, Microsoft Character Code Conversion Routines For HKSCS-2004 ,...
I'm not a Klingon (
)
Best Way to Make Your Own Encoding
Posted
over 7 years ago
by
Shawn Steele - MSFT
5
Comments
Martin recently asked what the best way to roll his own encoding in .Net 2.0, in particular can you override Encoding/Encoder/Decoder, or should he write his own StreamWriter. #1 is, of course, to use Unicode :), but apparently Martin doesn't have...
I'm not a Klingon (
)
Custom Locale and Custom Culture Limitations and Things That Work.
Posted
over 7 years ago
by
Shawn Steele - MSFT
5
Comments
Some people have used custom locales/custom cultures successfully and others are finding scenarios that don't work. Feel free to comment about what scenarios work/don't work for you. I'll try to update this when I learn about new scenarios. Limitations...
I'm not a Klingon (
)
Creating a Custom Culture (Locale) From Microsoft-ish LDML
Posted
over 8 years ago
by
Shawn Steele - MSFT
5
Comments
[Updated 11 Aug 2006 to reflect IETF style locale names] This is just a simple example of creating a custom culture from an LDML file. The LDML file has to have Microsoft specific tags otherwise you will get some errors for the missing data. The resulting...
Page 1 of 8 (183 items)
1
2
3
4
5
»