Replacing characters with accent / umlaut with their unvarnished counterparts in C #

Duplicate 249087

I have a bunch of user-generated addresses that may contain diacritical characters. What is the most efficient (i.e. General) way (besides a simple replacement) for automatically converting any such characters to their nearest English equivalent?

eg. any of the àâãäå will become a

æ will become two separate letters ae

ç becomes c

any of èéêë becomes e

etc .. for all possible variations of letters (preferably without the need for searching and coding searches for each diacritical form of writing).

(Note: I must pass these addresses to third-party software that cannot print anything other than English characters. I would prefer the software to be able to process them, but I cannot control this.)

EDIT: Nothing ... Find the answer [here] [2]. He appeared in the “Related” section to the right of the question after I posted, but not in my previous search or sentence. Hm. I added the diacritics tag to another question anyway.

EDIT 2: God! Who voted for it -1 after I closed it?

+6
string c # diacritics
source share
1 answer

Just about to post the same link :-)

It looks like you are doing this already, but I would recommend that you save the original line for display in your application and do it only for third-party developers. People become upset if they do not believe that their real name is important :-)

+1
source share

All Articles