Last active
August 29, 2015 14:13
-
-
Save iltercengiz/ca13490eeb2b9459b92d to your computer and use it in GitHub Desktop.
Get rid of accented characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *string = [@"Fıstıkçı Şahap" stringByFoldingWithOptions:NSDiacriticInsensitiveSearch | |
locale:[NSLocale localeWithLocaleIdentifier:@"en"]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
var mutableString = NSMutableString(string: "Fıstıkçı Şahap") as CFMutableStringRef | |
CFStringTransform(mutableString, nil, "Any-Latin; Latin-ASCII", Boolean(0)) | |
mutableString |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment