views:

197

answers:

1

i need to convert French text to most correct analogue in ASCII. Let me explain. In German you should convert ä to ae, this is not simple removing of diacritics, it is finding most correct analogue. Please help me with French. I found that there is no programmatic way to do it, i create Dictionary<char, string>.

To convert (+ capitals): é, à, è, ù, â, ê, î, ô, û, ë, ï, ü, ÿ, ç. and any other you suggest! Please write suggested substitution in ascii.

Thanks, Andrey.

PS: Please don't point to http://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net. That method is great but a bit language agnostic. It just strips diacritics. I plan to use it as a default if i don't have good analogue.

PPS: Pleas don't close the question, it is related to programming, since i implement multingual app

+3  A: 

As far as I know, when accents aren't available in French (ie, when converting to ASCII) you simply type the equivalent ASCII character (unlike German, where you can add an e after the vowel with the umlaut). Just for the accents you provided, I've never seen ÿ used in French. Don't forget æ and œ.

Cooper6581
æ goes to ae, œ to oe. Do you think in case of accents (é, à, è, ù) i can just strip them? i want to be maximum user friendly.
Andrey
Yes, that's what we would do in French : just strip the accents, there is no better analogue.
Thomas Levesque