I want to change a sentence, for example:
Être ou ne pas être. C’était là-bas.
Would become:
Etre ou ne pas etre. C’etait la-bas.
Is there any easy way to do this with NSString? Or do I have to develop this on my own by checking each char?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
… or try using
NSUTF8StringEncodinginstead.List of encoding types here:
https://developer.apple.com/documentation/foundation/nsstringencoding
Just FTR here’s a one line way to write this great answer: