As far as I've been able to tell, you can't create a CompareInfo that
causes diacritics to be ignored on comparison (which means you can't
create a CultureInfo to do the same).  You can create something that will
sort as if diacritics weren't there...

As far as I can tell the only way to compare two strings so that letters
with different accents are equal is to compare without nonspacing
characters.  This can be done with CompareInfo.Compare using
CompareOptions.IgnoreNonSpace.  But, I haven't seen anything where the
CompareOptions can be set for a CompareInfo object (other than
CompareInfo.None, which is uses by default if you call Compare without
CompareOptions).

Without that, I can't see how you can write an expression for
DataTable.Select that would do a ignore-nonspacing-characters comparision.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to