Hacker News new | ask | show | jobs
by gokhan 5095 days ago
That's why, for example, .NET world has .ToLowerInvariant() and .ToUpperInvariant() and developers are advised to use it when doing internal stuff. Interpreting / parsing a language is clearly an internal task and shouldn't be affected by locale changes.
2 comments

Yep. .NET also has a nice set of string comparison classes for dictionary lookups to avoid exactly this kind of thing.
Unfortunately you can't compare .NET to PHP. Ever.
They just did.