I need to code a Caesar cipher in C, so I'm working step by step to understand everything I'm doing.
I need to take care of special chars example : if a user enters
"This is a déjà vù !" it will convert this to "This is a deja vu"
Is there a C function capable of doing this instead of doing it by hand for each special char in ASCII code ?
This is what I'm trying to avoid :
case -85 :
case -86 :
case -87 :
case -88 :
*p = 'e';
Is there a C function capable of doing this instead of doing it by hand for each special char in ASCII code ?
Iconv will do what you want when you choose ASCII//TRANSLIT
as the target encoding.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With