The "non-standard ASCII characters" which you listed are Latin characters.
In fact, the character 'ú' is not 'u', but 'w'.
public char LatinToEnglishChar(char ascii)
{
return (ascii<131) ? ascii : ascii-131;
}
Main Topics
Browse All TopicsIs there any method available in C# that will convert any non-standard ASCII characters (characters > binary 128) into its equivalent standard ASCII characters. Basically, I need to replace any 'ñ' in my string to 'n', 'á' into 'a', 'ú' into 'u', and others. Aside from calling the String.Replace method, is there any other way without listing down/hard-coding all the non-standard ASCII characters with the corresponding replacement standard ASCII character.
Thanks for the help in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>The "non-standard ASCII characters" which you listed are Latin characters.
>In fact, the character 'ú' is not 'u', but 'w'.
I don't know how you have concluded that. non-standard ASCII characters are almost all possible west european-languages characters (spanish, french, german, portugaise, etc.)
In spanish and many other languages ú is not w, is just an u with accent, even it is "legal" to represent without "adornments" when expressed in uppercase, like U.
There are some interesting exceptions like in german where: ü can be represented as "ue", ä as "ae" and ß as "ss".
Business Accounts
Answer for Membership
by: jaime_olivaresPosted on 2006-05-02 at 18:26:58ID: 16592302
I have never seen this function but you can create a table and a function, something like:
','c','e', 'e','e','i ','i','i', 'A','A', .....ETC...... };
-128];
private char[] AsciiConversionTable = new char[128] { 'C','u','e','a','a','a','a
public char ToAscii7Bits(char ascii)
{
return (ascii<128) ? ascii : AsciiConversionTable[ascii
}