From: Jon Hanna (firstname.lastname@example.org)
Date: Fri Mar 24 2006 - 12:12:03 CST
Jony Rosenne wrote:
> Microsoft recommends for case insensitive comparisons:
> "DO: Use ToUpperInvariant rather than ToLowerInvariant when normalizing
> strings for comparison."
> I have seen similar recommendation elsewhere.
> However, I was under the impression that in Unicode it is better to do
> ToLower for removing case, because of the German SS.
> Which is better? Should the UTC take a position?
You should use a case-folding operation designed especially for
case-insensitive comparisons. The operation will per-force be
locale-dependent, as the locale would affect whether i is mapped to
dotted or undotted I and so on.
As far as Latin characters go for non-Turkic comparisons you would want
to use upper case, because of the German SS - going to lower case
there's no way to know whether to map SS to ss or ß.
This archive was generated by hypermail 2.1.5 : Fri Mar 24 2006 - 12:09:53 CST