Try entering the code to replace the desired characters,
NSString *cluasesText = @"آخرین حقوق کارگر را بهعنوان \"حق سنوات\" به وی ";
NSCharacterSet *charsToBeReplace = [NSCharacterSet characterSetWithCharactersInString:@"/:.\""];
cluasesText = [[cluasesText componentsSeparatedByCharactersInSet: charsToBeReplace] componentsJoinedByString: @""];
Hope this helps you ...
Change and update:
As @Husein Behboodi Rad asked, let me explain what went wrong,
escape char ie\ " \u005c\u0022, \" \u005c\u0022\u200c, escape-, .. \ ", char ie \" char unicode, , .
, ,
cluasesText = [cluasesText
stringByReplacingOccurrencesOfString:@"\"" withString:@"*****"];
, stringByReplacingOccurrencesOfString , ( Unicode). ,
, , ,
NSString *cluasesText = @"آخرین حقوق کارگر را بهعنوان \"حق سنوات\" به وی ";
cluasesText = [cluasesText
stringByReplacingOccurrencesOfString:@"\"" withString:@"*****"];
cluasesText = [cluasesText
stringByReplacingOccurrencesOfString:@"\"" withString:@"*****"];
آخرین حقوق کارگر را بهعنوان *****حق سنوات***** به وی
, characterSetWithCharactersInString, , IMHO, characterSetWithCharactersInString unicode , stringByReplacingOccurrencesOfString withString .
, .