Welcome to MSDN Blogs Sign in | Join | Help

January 2006 - Posts

ISO 8601 Week of Year format in Microsoft .Net

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
Posted by shawnste | 8 Comments
Filed under:

Custom Time Zones in Windows

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\Software\Microsoft\Windows

Best Fit in WideCharToMultiByte and System.Text.Encoding Should be Avoided

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

IDN Mitigation API dll needs to be explicitly linked

Since we (I) didn't provide a .lib file for the "Microsoft Internationalized Domain Name (IDN) Mitigation APIs 1.0", you'll have to explicitly link to the IDN Mitigation API dll, which means you'll have to make your own header & code something like:
 
Page view tracker