c# - Should I use Current Culture for this -


in application, text user typed in .txt file compared file names , running process names on users computer.

should use current culture comparison such, or ordinal comparison fine.

if matters @ all, i'm using c#

it depends on expect. ordinal comparison literally compares bits , ignores aspects unicode normalization. linguistic comparisons use rules make sense users. example if want use language specific rules of type 'æ' equivalent 'ae' (english) or 'ß' (sharp s) equivalent 'ss' (german) or 'á' (decomposed: followed combining acute) equivalent '́á' (precomposed: acute) need use 1 of culture comparisons.


Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

ruby - Net::HTTP extremely slow responses for HTTPS requests -