Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSString normalization using NFD unicode

In my application I have to normalize an NSString using NFD Unicode system. How can I do this? I need to convert a string which the user entered as normalized and from this normalized string, I have to calculate a number. Can anyone help me?

like image 601
iOS Developer Avatar asked Nov 22 '25 13:11

iOS Developer


1 Answers

NSString *nfdString = [yourString decomposedStringWithCanonicalMapping];
like image 91
Wevah Avatar answered Nov 25 '25 04:11

Wevah