Replace German characters (umlauts, accents) with english equivalents
I need to remove any german specific characters from various fields of text for processing into another system which wont accept them as valid.
So the characters I am aware of are:
ß ä ö ü Ä Ö Ü
At the moment I have a bit of a manual way of replacing them:
myGermanString.Replace("ä","a").Replace("ö","o").Replace("ü","u").....
But I was hoping there was a simpler / more efficient way of doing it. Since I'll be doing it on thousands of strings per run, 99% of which will not contain these chars.
Maybe a method involving some sort of CultureInfo?
(for example, according to MS, the following returns the strings are equal
String.Compare("Straße", "Strasse", StringComparison.CurrentCulture);
so there must be some sort of conversion table already existing?)