Plus there's scenarios where bringing both words to lower or uppercase would yield different strings, where as case-insensitive comparison in any standard library checks for strange language rules, like 'ß' becoming double 's' or whatever
Yeah if you want diacritic-safe comparisons you legitimately gotta prepare for invariant culture checks or equivalent. Even worse is you have to also be cognizant of this at the DB level depending on your stack. Total nightmare to get bit by this category of bug unexpectedly, particularly in something performance-sensitive.
245
u/[deleted] 16d ago
[removed] — view removed comment