Localization — how to check that Filename1 and Filename2 are the same

Posted by modosansreves on Stack Overflow See other posts from Stack Overflow or by modosansreves
Published on 2009-07-31T10:40:11Z Indexed on 2010/04/03 13:23 UTC
Read the original article Hit count: 414

I want to know that Filename1, provided by the user is the same as stored in DB (Filename2).

I was about to use

string.Equals(Filename1, Filename2, StringComparison.CurrentCultureIgnoreCase)

but then I doubted whether I should use StringComparison.InvariantCultureIgnoreCase.

Obviously, I need to do this the same way OS does, or use appropriate API.

In some cultures, AFAIK, characters (e.g. vocals) may change if the next one is Capitalized.

As I primarily target English-speaking market, I'd like my software to work well throughout the world.

© Stack Overflow or respective owner

Related posts about internationalization

Related posts about Windows