Re:A popular but wrong way to convert a string to uppercase ...
by account42 on Wednesday October 09, 2024 @08:53AM
(#41787403)
The point is that what ToUpper does depends on locale AND Unicode version. This for many applications it only appears to work until it will fail spectacularly in production.
Yes we can simply ToUpper(). We just can’t ToUpper().ToLower(), but that’s useless cause we have the original string if we need it and fine if we don’t need it.