P/Invoke: usually you need CharSet.Auto (via: .NET Column: Calling Win32 DLLs...
I don’t do P/Invoke often, and somehow I have trouble remembering the value of CharSet to pass with DllImport. In short, pass CharSet.Auto unless you P/Invoke a function that is specific to...
View ArticleShapecatcher.com: Unicode Character Recognition
There are so many Unicode code points, that finding back one based on how a glyph looks like is similar to finding the needle in a haystack. ShapeCatcher.com to the rescue: it has a drawing box where...
View ArticleSome words on Unicode in Windows (Delphi, .NET, APIs, etc)
O'Reilly book "Unicode Explained: Internationalize Documents, Programs, and Web Sites" Withe the growing integration between systems, and the mismatch between those that support Unicode and that do...
View ArticleSQL Server 2000 (and probably later) other reason for...
While transitioning from SQL Server 2000 to 2008, I recently had the “A severe error occurred on the current command. The results, if any, should be discarded.” occurring on SQL Server 2000 in the...
View ArticleSearchable UTF8 Unicode Characters
Brilliant: site where you can Search UTF8 Unicode Characters. If you know part of the name of a Unicode character, you can now try and find it, then copy/paste it from that site. –jeroenFiled under:...
View ArticleXML and HTML escapes
While reviewing some client’s code, I noticed they were generating and parsing XML and HTML by hand (do not ever do that yourself!). Before refactoring this into something that uses libraries that...
View Article.NET/C# duh moment of the day: “A char can be implicitly converted to ushort,...
A while ago I had a “duh” moment while calling a method that had many overloads, and one of the overloads was using int, not the char I’d expect. The result was that a default value for that char was...
View ArticleDelphi and C# compiler oddities
When developing in multiple languages, it sometimes is funny to see how they differ in compiler oddities. Below are a few on const examples. Basically, in C# you cannot go from a char const to a string...
View ArticleSTART: Start a program, **even if it is not on the PATH** ideal to start...
A while ago, I had to adapt a DOS app that used one specific version of Excel to do some batch processing so it would support multiple versions of Excel on multiple versions of Windows. One of the big...
View ArticleLink clearance: fonts, localization, languages, internationalization,...
A few links I came across recently: internationalization – Country codes list – C# – Stack Overflow. c# – Converting country codes in .NET – Stack Overflow. CLDR – Unicode Common Locale Data...
View ArticleDelphi “type types”: similar types but not the same type identity, some...
Few people know about a Delphi language feature that has been present since Delphi 1: prepending the type definition with a type keyword to make the type getting a new identity. Each time I use it, I...
View ArticleDelphi “Variant Records”, a few notes
Variant Records are a feature that has been in the Pascal language since Standard Pascal. A cool page for historic perspective is R3R: Pascal Features in Popular Compilers, hopefully someone will...
View ArticleFoute foutmelding @heldenvannu (inschrijving: Pakketten | HELDEN VAN . NU)
Als je postcode “1060 NP” invult bij aansluiting en “1170 AB” bij facturatie, dan krijg je deze onterechte foutmeldingen: Organisatie postcode is ongeldig Facturatie gegevens postcode is ongeldig...
View ArticleWhat programmers font (monospaced!) do you like best?
Lucida Console Sample (thanks Wikimedia!) I’m in search to see if there is a better programmers font than the monospaced Lucida Console mainly to be used in Visual Studio, Delphi, the Windows console,...
View Article.NET/C#: from Unicode to ASCII (yes, this is one-way): converting Diacritics...
A while ago, I needed to export pure ASCII text from a .NET app. An important step there is to convert the diacritics to “normal” ASCII characters. That turned out to be enough for this case. This is...
View ArticleSome cloud storage / online backup providers compared (DropBox, Sugarsync,...
I’ve been using a few cloud storage / online backup providers for a while on Mac and Windows now, with the primary goals of being able to sync data between machines having a backup online Here are some...
View ArticleDelphi Mobile (NEXTGEN) compiler: the risk of a changed TSymbolName;...
The NEXTGEN family of Delphi compilers for the Mobile platforms changed quite a bit of things. Most of it has been covered by various blogs posts. A non exhaustive list of ones I liked: Delphi Language...
View ArticleSome notes and links on DVCS (distributed version control systems)
I love DVCS for one single reason: merges are so much easier than with traditional version control systems, and you can use it in a disconnected way for almost 100% of the time. Coming from a...
View Article▶ Characters, Symbols and the Unicode Miracle – Computerphile – YouTube
Brilliant: UTF-8 explained in less than 9 minutes. The diagram fits almost on the back of a napkin, so he explained it with a big marker on classic 132-column fan fold green-bar continuous form paper...
View ArticleSome Unicode links
I see a lot of programmers struggle with Unicode and think it is difficult as getting the encoding decoding hassle right can take quite a bit of effort. There is a lot of fun in using Unicode as well,...
View Article