0

special characters in lowercase letters in a word, failing. sample:

NSLog(@"%@",name);
name = [name lowercaseString];
NSLog(@"%@",name);

2013-06-24 23:32:11.590  Player[12739:907]   BİLİYORSUN..
2013-06-24 23:32:11.590  Player[12739:907]   bi̇li̇yorsun..

2013-06-24 23:36:09.504  Player[12739:907]  İTÜ
2013-06-24 23:36:09.505  Player[12739:907]  i̇tü 

"i" "İ" seem distorted letters. What should I do? thanks.

the output is supposed to be this way: the right thing

2013-06-24 23:36:09.505  Player[12739:907]  itü 
2013-06-24 23:32:11.590  Player[12739:907]  biliyorsun..
user2512558
  • 21
  • 2
  • 7
  • Not sure what the issue is. Capital and Lowercase are both I with Grave. [Reference](http://www.utf8-chartable.de/) – davis Jun 24 '13 at 20:48

2 Answers2

0

You should reference the UTF-8 char table found here. This seems to be normal behavior, as your capital and lowercase 'İ' both are of the type 'I with Grave'.

davis
  • 1,911
  • 6
  • 26
  • 50
0

Use this .

NSString *str=@"TESTING";
str = [str lowercaseString];
 NSLog(@"%@",str);

and output is : testing

Please use this type of code.thanks

D.M Patel
  • 145
  • 1
  • 7