By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,480 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,480 IT Pros & Developers. It's quick & easy.

Comparing strings with accented characters

P: n/a
Hello all,
I'm led to believe that the .Net framework offers intelligent string
comparison such that é follows e in an alphabetic sort rather than appearing
after z, for example. Does this mean that there is a mechanism for comparing
strings that may or may not have accents and having them shown as identical
(e.g. comparing Herve with Hèrvé would show a match). Ideally, this should
be culture neutral as I will not have knowledge of which language the names
come from.
Does this sound feasible, as I am loathe to create tables of 'identical'
characters and doing a manual comparison using them?
Thanks for any advice,
Reg
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Reg Rat wrote:

I'm led to believe that the .Net framework offers intelligent string
comparison such that é follows e in an alphabetic sort rather than appearing
after z, for example.
That depends on the CultureInfo you use.
Does this mean that there is a mechanism for comparing
strings that may or may not have accents and having them shown as identical
(e.g. comparing Herve with Hèrvé would show a match). Ideally, this should
be culture neutral as I will not have knowledge of which language the names
come from.
Does this sound feasible, as I am loathe to create tables of 'identical'
characters and doing a manual comparison using them?


Maybe you can use/create your own CompareInfo instance for that.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.